Fredrik Lundh wrote:
> Neil Toronto wrote:
>
>   
>> Heck no. An assignment would modify an existing variable only.
>>     
>
> what's an "existing variable"?  how would STORE_GLOBAL work under your 
> proposal?
>   

I haven't got a clue what STORE_GLOBAL is, apart from the fact that it 
looks like it has something to do with Python's bytecode.

If it's what I think it is (so don't hold me to this), it'd raise an 
exception if you used on something that hadn't been created yet. 
Probably need a MAKE_GLOBAL in addition to it, or keep STORE_GLOBAL as 
it is (for "var x = 0") and add MODIFY_GLOBAL that raises an exception 
on uncreated variables.

Or something. Again, I'm guessing, and you have me at a disadvantage. 
Can we keep the discussion above the bytecode level for now?

Neil

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to