Parentheses example:
list words words = ( "Anonymous", "is", "still", "able", "to", "deliver." )The other change is self-explanatory. If an object member is private, it would not be inherited by object instances. Now all members will be inherited as the instance is merely a copy of the original object. Inheritance still works the same.
object Parent private method priv_m say "I am a private method." end public method pub_m say "I am a public method." end end object Child = Parent end p = Parent c = Child p.priv_m # Success c.priv_m # FailureTo download 3.8.1, you can visit any of the following links:
sourceforge
freecode
Sparc compliant binary will be available within the next couple of weeks.
Is there a means whereby one may enumerate the members of an object? If I use, say, the env object the samples would suggest that I need to know all the components at time of writing. It'd be nicer to be able to output, for example, the names of the members and their values by iterating through an enumeration of the members.
ReplyDeleteBTW, I'm impressed with USL. Keep up the good work.
Thank you. I'm currently working on the new version. I will add a way to enumerate object members. Expect a new release in the next couple of days or so. Thank you for the suggestion.
ReplyDelete