Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: object funnies

From: greggirwin:mindspring at: 19-Oct-2001 0:06

Hi Andrew, << I wonder if it would be a smart idea to make a scanner function that looks inside nested blocks for a object! spec and adds any set-word! to the start of the object's block...>> I think it could be very helpful, even if the scanner was just a Lint-like tool. It could scan an object and give you a report of the words defined in the object and those that will be defined in the global context. With Graham's example, you would have to ask them if they intended the words to be defined for the object, or if they wanted them to be local to the function. I can see people coming from other languages and making this scoping error very easily (myself included). --Gregg