Monday, April 9, 2012

USL 3.8.5

I have added two keywords to USL: "lock" and "unlock".

Normally, all objects are removed when "clear_all!" is called. I have made it possible to save methods and variables from this destructive command.

There are two ways to create an "indestructible" method, but only one way to create an "indestructible" variable.

Here is an example of a method:
[method] indestructible_method
       say "I am indestructible."
end

method another_method
       say "I will be indestructible."
end

lock another_method

say "both methods are indestructible."

clear_all!

indestructible_method
another_method

unlock indestructible_method
unlock another_method

say "both methods are now destructible."

clear_all!

The same "lock" and "unlock" command may be used on variables, just as we did with methods.

To download 3.8.5, you can visit any of the following links:
sourceforge
freecode

No comments:

Post a Comment