[Jprogramming] under locale
David Lambert
b49p23tivg at gmail.com
Thu May 6 13:51:49 UTC 2021
Use case: u&.cd invokes u in some directory, then cd^:_1 restores the
working directory. cd is a method in another locale that stores the
current directory before the change. coinsert doesn't provide the desired
encapsulation. What, please, is the solution?
coclass'co'
a=:3 :'FIELD=: y'
b=:3 :'FIELD'
f=: a :. b f.
coclass'base'
o=:conew'co'
([: echo 'invoked u'"_)&.f__o 98732459
invoked u
|noun result was required
| FIELD
b__o''
98732459
coinsert'co'
([: echo 'invoked u'"_)&.f < 245
invoked u
+---+
|245|
+---+
FIELD=: 'and stream'
([: echo 'invoked u'"_)&.f < 245
invoked u
+---+
|245|
+---+
FIELD
+---+
|245|
+---+
More information about the Programming
mailing list