09.03.2015 Views

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

&phi : real<br />

&phi is the golden ratio, 1.618033988...<br />

&pi : real<br />

&pi is the value of pi, 3.141592653...<br />

golden ratio<br />

pi<br />

&pos := integer<br />

string scanning position<br />

&pos is the position within the current subject of string scanning. It is assigned implicitly by<br />

entering a string scanning environment, moving or tabbing within the environment, or assigning<br />

a new value to &subject. &pos may not be assigned a value that is outside the range of legal<br />

indices for the current &subject string.<br />

&progname := string<br />

&progname is the name of the current executing program.<br />

program name<br />

&random := integer<br />

random number seed<br />

&random is the seed for random numbers produced by the random operator, unary ?. It is<br />

assigned a different sequence for each execution but may be explicitly set for reproducible results.<br />

&regions : integer*<br />

region sizes<br />

&regions produces the sizes of the static region, the string region, and the block region. The first<br />

result is zero; it is included for backward compatibility reasons.<br />

&source : co-expression<br />

&source is the co-expression that activated the current co-expression.<br />

invoking co-expression<br />

&storage : integer*<br />

memory in use<br />

&storage gives the amount of memory currently used within the static region, the string region,<br />

and the block region. The first result is always zero and is included for backward compatibility<br />

reasons.<br />

&subject := string<br />

string scanning subject<br />

&subject holds the default value used in string scanning and analysis functions. Assigning to<br />

&subject implicitly assigns the value 1 to &pos.<br />

&syserr := integer<br />

halt on system error<br />

&syserr controls whether a system error causes execution to halt. System errors cause expression<br />

failure by default. If &syserr is set to a non-zero value, system errors are converted to runtime<br />

errors and halt execution with an error traceback.<br />

&time : integer<br />

elapsed time<br />

&time gives the number of milliseconds of CPU time that have elapsed since the program execution<br />

began. For wall clock time see &now or &clock.<br />

&trace := integer<br />

trace program<br />

7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!