Re: Still no records



ZB wrote:
The problem for 8.4.x user/programmer could be (it was for me, anyway...),
that although you can set array of lists - you cannot set a list of arrays,
which could be a kind of replacement for records. Yes, Tcl's associative
array could be a real record-ersatz, if only could I set a list of such
arrays then.

Yes, I read about tricks with variable names - but we agree, that such tricks
are "workarounds - not solutions"?

Get the 'dict' extension for 8.4 or just get 8.5 (b1 should be no more
than a week or so away) which has the functionality integrated. That
gives you a (reasonably) efficient way of handling values that contain a
by-name mapping.

Donal.
.



Relevant Pages

  • Re: garbage collection problem in large linked lists
    ... Instead all buckets are allocated at once in an array. ... VG.net, which must be very scalable, but only for lists which would normally ... Linked lists require pointer dereferencing in order to traverse. ... When you run out of space, you allocate a new smaller array. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Dict sharing vs. duplication
    ... array to enforce unique keys and I use lists to enforce order. ... API in a page or two of Tcl code, it isn't so much a missing feature ... OpenACS database API which creates a new specialized data structure, ...
    (comp.lang.tcl)
  • Re: Translating python to scheme
    ... Scheme has mutation, and there are reasons to use it. ... confusing when considering a 2d array. ... in other languages: Lisp Lists and Vectors. ...
    (comp.lang.scheme)
  • Re: vasam
    ... // Set the size for long lists in records #2 and #3 only! ... Here is the sequel of my previous post "Variable array sizes as members" ... I was given some advice on how to use malloc and realloc in oder to achieve ...
    (microsoft.public.vc.language)
  • Re: Approx mode creates largedr matricies
    ... real/complex "array" types ... In the "list (of lists)" alternate storage type, ... no ROM address is ever used, ... which started with the HP48S series) ...
    (comp.sys.hp48)