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.

classname(r) : string<br />

classname(r) produces the name of r’s class.<br />

class name<br />

close(f) : file | integer<br />

close file<br />

close(f) closes file, pipe, window, network or message connection, or database f and returns any<br />

resources associated with it to the operating system. If f was a window, close(f) causes it to<br />

disappear, but the window can still be written to and copied from until all open bindings are<br />

closed. If f was a pipe or network connection, close() returns the integer exit status of the<br />

connection, otherwise it returns the closed file.<br />

cofail(CE) : any<br />

transmit co-expression failure<br />

cofail(ce) activates co-expression ce, transmitting failure instead of a result.<br />

collect(i:0, i:0) : null<br />

collect garbage<br />

collect(i1,i2) calls the garbage collector to ensure that i2 bytes are free in region i1. i1 can be 0<br />

(no region in particular) 1 (static region) 2 (string region) or 3 (block region).<br />

condvar() : condition variable<br />

condvar() creates a new condition variable.<br />

create condition variable<br />

constructor(s, ...) : procedure<br />

record constructor<br />

constructor(label, field, field, ...) creates a new record type named label with fields named by its<br />

subsequent arguments, and returns a constructor procedure for this record type.<br />

copy(any) : any<br />

copy value<br />

copy(x) produces a copy of x. For immutable types (numbers, strings, csets, procedures) this is a<br />

no-op. For mutable types (lists, tables, sets, records, objects) a one-level deep copy of the object<br />

is made.<br />

cos(r) : real<br />

cos(r) produces the cosine of r. The argument is given in radians.<br />

cset(any) : cset?<br />

cset(x) converts x to a cset, or fails if the conversion cannot be performed.<br />

cosine<br />

convert to cset<br />

ctime(i) : string<br />

format a time value into local time<br />

ctime(i) converts an integer time given in seconds since the epoch, Jan 1, 1970 00:00:00 into a<br />

string in the local timezone. See also keywords &clock and &dateline.<br />

dbcolumns(D,s) : list<br />

ODBC column information<br />

dbcolumns(db, tablename) produces a list of record (catalog, schema, tablename, colname,<br />

datatype, typename, colsize, buflen, decdigits, numprecradix, nullable, remarks) entries. Fields<br />

datatype and typename are SQL-dependent and data source dependent, respectively. Field colsize<br />

gives the maximum length in characters for SQL CHAR or SQL VARCHAR columns.. Field<br />

decdigits gives the number of significant digits right of the decimal. Field numprecradix specifies<br />

19

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

Saved successfully!

Ooh no, something went wrong!