comp.lang.tcl
[Top] [All Lists]

Re: merging variables and arrays ... conflicting with cloverfield?

Subject: Re: merging variables and arrays ... conflicting with cloverfield?
From: Uwe Klein
Date: Fri, 30 May 2008 15:36:56 +0200
Newsgroups: comp.lang.tcl


Andreas Leitgeb wrote:
Uwe Klein <uwe_klein_habertwedt@xxxxxxxxxxx> wrote:

Andreas Leitgeb wrote:

Syntactically mixing arrays and dicts is a worse idea, imho,
than range-syntax for lists.  lists don't have a container-
pendant, so it would cause less of a confusion.

In JIM an array is a cloaked dict.
I found this very easy to get accustomed to.


Last time I checked (couple of years ago), JIM had no variable
traces and no "upvar", either. Without these things, arrays
I have recently extended JIM in a couple of points to
make it useable as a userspace scriptable replacement for
a linux in_kernel hardware driver.
i.e. hardware_io usererspace interrupts, sockets, fileevent, signals.


upvar works.
you can even do at global or proc local scope
upvar #0 $dict(elem1) var1

no traces though.
I very much like the proc static variables.

uwe

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy