Re: PIR methods and local variables occupy the same 'namespace'

2005-12-02 Thread Leopold Toetsch
On Dec 2, 2005, at 0:42, Allison Randal wrote: I realize this is a side effect of the fact that method names are actually strings, but it's an unfortunate result. .sub main :main newclass $P1, 'Thingy' $P2 = new 'Thingy' $P2.snark() end .end .namespace [ "Thingy" ] .sub sna

Re: PIR methods and local variables occupy the same 'namespace'

2005-12-02 Thread Roger Browne
Allison Randal wrote: > There's an easy way to ensure the clash between method names and > local variables never happens: always wrap the method name in quotes. There's a sort-of-related problem with parameter names and local variable names, but wrapping them in quotes isn't an available workaro

PIR methods and local variables occupy the same 'namespace'

2005-12-01 Thread Allison Randal
I realize this is a side effect of the fact that method names are actually strings, but it's an unfortunate result. If I have a little bit of code that calls a method without quotes around the name of the method, it calls the method (prints out "Boojum"), exactly as expected: .sub main :m