Standard Library/colib

From J Wiki
Jump to navigation Jump to search
Overview | android | break | colib | compare | coutil | dates | debug | dir | dll | files | jade | jal | stdlib | strings | sysenv | text | unxlib

This script defines the class/object library and is included in the J standard library. Definitions are loaded into the z locale.

Definitions

C coclass, cocreate, cocurrent, codestroy, coerase, cofullname, coinsert, coname, conames, conew, conl, copath, coreset

coclass v set class/object class
cocreate v create object
cocurrent v set current locale
codestroy v destroy current object
cofullname v return name with locale qualifier
coname v return current class/object name
conames v formatted class/object name list
conew v create object
copath v set/get class/object path
coreset v destroy object locales,

coerase (verb)

Erase object.

Example:

coerase <'jzplot'

coinsert (verb)

adds argument and copath of argument to current path.

paths are in order of argument, except that z is at the end.

Example:

coinsert 'cdir'
coinsert 'cdir pobj'
coinsert 'cdir';'pobj'

conl (verb)

Return class/object name list.

Syntax:

conl n