--
You received this message because you are subscribed to the Google Groups "LDMud Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ldmud-talk+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ldmud-talk/fad01f59-7dd2-4000-bdb3-944079239f07n%40googlegroups.com.
Hi there,
The main problem will be that there is no 'undef' value in LDmud,
all variables are implicitly initialized to 0. So a simul_efun
that does all you want depending on context is (as far as I know)
impossible to implement. Both map[not_there] and map[value_0]
return the same "0" (that's why there is a member() function in
the first place). So even if you implement a
sefun::undefinedp(arg) you will not be able to tell the difference
from arg alone.
In some cases like e.g. a destructed object you could have some
luck checking the type, but then again a (object)0 for a
destructed object is exactly the same as if there never was an
object to begin with.
regards
Invis
--
Hello again,
At least in this example it looks as if you can just replace
undefinedp() with a check for 0.
cu
Invis
To view this discussion on the web visit https://groups.google.com/d/msgid/ldmud-talk/417a16ed-fd12-44d5-afbc-30f219f99fd4n%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "LDMud Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ldmud-talk+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ldmud-talk/c4d5edef-69fd-4c4b-83c8-14bd3978798en%40googlegroups.com.