Host introspection: Difference between revisions
Content added Content deleted
(→{{header|Perl 6}}: add entry) |
m (→{{header|REXX}}: added REXX code for parsing SOURCE to determine which operating system it's running under. -- ~~~~) |
||
Line 668: | Line 668: | ||
programmer to look at (local) storage, and if there is an indicator stored anywhere |
programmer to look at (local) storage, and if there is an indicator stored anywhere |
||
in the virtual address space, that it can be examined. |
in the virtual address space, that it can be examined. |
||
<lang rexx>/*REXX program to examine which operating system that REXX is running under. */ |
|||
<br><br> |
|||
parse source opSys howInvoked pathName |
|||
/*where opSys will indicate which operating system REXX is running under, and */ |
|||
/*from that, one could make assumptions what the wordsize is, etc. */</lang> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |