Introspection: Difference between revisions

Content deleted Content added
Petelomax (talk | contribs)
m Fixed typo (existance → existence)
Line 1,048:
 
*check whether the variable "bloop" exists and whether the math-function "abs()" is available and if yes compute abs(bloop).
<lang lingo>-- check existanceexistence of bloop in local scope
bloopExists = not voidP(value("bloop"))
-- or for global scope:
Line 1,941:
<lang Retro>@Version #201906 lt+ &bye if</lang>
 
The existanceexistence of functions can be checked using '''d:lookup'''. In this, a helper function is provided to improve readability.
 
<lang Retro>
Checks for existanceexistence of "bloop" and "n:abs"
 
~~~