„Google“ grupės nebepalaiko naujų „Usenet“ įrašų ar prenumeratų. Istorinį turinį galima peržiūrėti.

API / opcode behavior change - find_global/get_global

0 peržiūrų
Praleisti ir pereiti prie pirmo neskaityto pranešimo

Leopold Toetsch

neskaityta,
2006-01-15 14:57:052006-01-15
kam: p6i Internals
* iff global lookup exceptions are off, a Null PMC is returned instead
of
Undef on lookup failure

This is necessary as a global .Undef with that global name could still
exist, but the difference WRT non-existing global isn't even testable
with 'defined'. Now ...

g = global 'foo'
if null g goto g_doesn_exist

... works for defined but .Undef vars too.

leo

0 naujų pranešimų