At 5:57 PM -0800 1/20/02, Larry Wall wrote:
>[EMAIL PROTECTED] writes:
>: How does one enforce the no side-effects rule, and how deeply does it
>: traverse? 
>
>Dunno.  Could warn or fail on assignment to any non-lexical or
>non-local lexical as a start.  Maybe we could warn or fail on method
>calls known to modify an object.  But I don't know how much
>technological enforcement we can achieve without an unnecessarily
>fascist declaration policy.  I expect the most important thing would be
>to encourage people to think that way.

Anything like that I can see being reasonably expensive to provide in 
the runtime. I'm not sure if it can be done without cost in all 
circumstances either. (We'd need to trap all write access, and I 
can't imagine that being cheap. I admit I'd rather not have to 
imagine a way that it was... :)
-- 

                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to