Introspection: Difference between revisions

Content deleted Content added
m →‎[[E]]: Split off Forth section
Line 43: Line 43:
==[[Forth]]==
==[[Forth]]==
[[Category:Forth]]
[[Category:Forth]]

Standard Forth doesn't necessarily provide for version numbers, but you can query information about the environment at interpretation time:

s" MAX-U" environment? [IF]
0xffffffff <> [IF] .( Requires 32 bits! ) bye [THEN]
[THEN]

[defined] bloop [if]
[defined] abs [if]
bloop abs
[then] [then]