On 6/26/07, Jack Andrews <[EMAIL PROTECTED]> wrote:
can i save such a dictionary, maybe with 10 s: x ?
I've never used 10 s: or 0 s: 10, so I don't know. But my impression is that s: is just about symbols -- not about their associated values. That said, once upon a time I wrote a little script to do something like this: http://www.jsoftware.com/pipermail/general/2006-October/027986.html I didn't document it very well, but basically it creates a locale named 'namespace' which contains two significant commands: save and read. Each of them takes a right argument which is the locale to be saved, or read. Each of them also takes an optional left argument which is the directory which contains representations of the corresponding objects (by default it's named the same as the right argument). There's undoubtedly more efficient approaches, but this approach is nice and simple, and easy to manipulate (should you want to that). Anyways, I think efficiency sometimes gets in the way -- it's usually a good idea to make sure you can quantize your benefits from a "more efficient approach" before you adopt it. That said, I'm sure if you poked around you could find a variety of other systems for these kinds of thing. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
