Folks,
I understand that Logo is dynamically scoped, but see this as, well, ugly. Are there any lexically scoped Logos?
Thanks,
Tim
On Tuesday, August 19, 2014 at 7:39:15 PM UTC+1, Tim Even wrote:NEW <word> you could create more than one local variable with the same name in the same procedure e.g. REPEAT 5 [NEW 'X] but that was a bit pointless because all but the most recent instance were inaccessible and null.
Folks,
I understand that Logo is dynamically scoped, but see this as, well, ugly. Are there any lexically scoped Logos?
Thanks,
Tim
Nimbus Logo and Terak Logo were both lexically scoped. The system looked for the named variable in the current procedure, then in the procedure that invoked the current procedure etc., and finally it looked for a global variable of the same name. Using
I have no idea whether anyone still has Nimbus Logo or Terak Logo any more. They were extant in 1984. If anyone still has a working copy of either, please tell me: I'd be most interested.
Ken Johnson
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 213:38:30 |
Calls: | 6,619 |
Calls today: | 1 |
Files: | 12,168 |
Messages: | 5,317,428 |