You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After modifying the swear example to make sure that every single function would be deleted, I was faced with the problem that vigil doesn't want to punish the main function. If the main function happens to call functions that were deleted, the main function is a bad girl and must be punished! Instead, this is what happens:
uncaught error from line 4
Traceback (most recent call last):
File "./vigil", line 94, in <module>
exec(source)
File "<string>", line 10, in <module>
File "./vigil", line 76, in vigil_uncaught
punish(raise_line, "Raised '%s' which was not caught." % sys.exc_info()[1])
File "./vigil", line 36, in punish
source_lines[i] = ''
IndexError: list assignment index out of range
Here is what's on the source file after vigil has punished everything into oblivion.
# This shows what happens when a function fails to keep its oath.
def main():
innocent_fn()
innocent_fn()
How can we consider vigil the Batman of programming languages when main is above them all? Justice must be blind and applied to everybody!
The text was updated successfully, but these errors were encountered:
After modifying the swear example to make sure that every single function would be deleted, I was faced with the problem that vigil doesn't want to punish the main function. If the main function happens to call functions that were deleted, the main function is a bad girl and must be punished! Instead, this is what happens:
Here is what's on the source file after vigil has punished everything into oblivion.
How can we consider vigil the Batman of programming languages when main is above them all? Justice must be blind and applied to everybody!
The text was updated successfully, but these errors were encountered: