[Jprogramming] extend a class
Miller, Raul D
rdmiller at usatoday.com
Fri Mar 17 09:39:39 HKT 2006
Oleg Kobchenko wrote:
> 1. coinsert other COCLASSPATH
>
> require'socket'
> coinsert COCLASSPATH_jsocket_
Would not be necessary if coextend=: coinsert
> 2. copath own COCLASSPATH
>
> coextend 'jgl2'
> coextend 'jgl3'
> COCLASSPATH copath coname''
Would not be necessary if coextend=: coinsert
> 3. copath other COCLASSPATH
>
> COCLASSPATH_jzplot_ copath 'jwplot'
I'm not sure about this one.
> 4. direct assign COCLASSPATH
>
> COCLASSPATH=: ;: 'jviewmat jgl2 z'
Analogous to using copath dyad.
> 5. re-assign names using COCLASSPATH
>
> a=. (nl_jgl2_ '') -. <'COCLASSPATH'
> 0!:100 > (a ,each <'_z_=: ') ,each a ,each <'_jgl2_'
I'm not sure about this one.
> 6. combination of the above
>
> COCLASSPATH=: ,each 'jijs';'j';'z'
> (}.COCLASSPATH) copath <'jijs'
At least part of this would go away if
coextend=: coinsert
--
Raul
More information about the Programming
mailing list