Re: Re[2]: (Another) (small) Eu 2.5 feature request.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Patrick Barnes wrote:
> 
> > > Y'know, it's wonderful that a sequence can hold anything... it's much
> > > better than C-style arrays.
> > > However, can *anyone* show me a program where they've used a sequence
> > > variable that was:
> > > 1. Large.
> > > 2. Completely non-homogenous. That is, there was no underlying
> > > structure to the sequence *at all*...
> > >
> > 
> > Win32lib has the potential to do that. It uses a type of associative array
> > for some things.
> 
> Really? So there's no pattern whatsoever to the array? Can you expand
> that description?

Sure. The library supports User-Defined-Properties for each control. This
is implemented as a pair of sequences for each control. One sequence
contains text names for each property that the user defines, and the
other contains the value of each defined property. As we can't predict
the order that properties are defined in, or the datatypes that they
might have, we can end up with a sequence in which each element
has no correlation to any other element in the same sequence.

The library also supports Trackable Objects. These can be anything that
the user likes. Win32lib supplies some management functions for them but
it has no control over their contents.

> I have used N-node trees for quite a few little experiments, and they
> are a type of data that does not simply fit into a sequence...
> It ended up becoming a sequence of "nodes", where an element in the
> node contained the index of the node's parent, and an element
> contained the indexes of all the node's children.
> Homogenous. Every top-level element had the same structure.
> 
> 
> (Maybe homogenous is not the correct word.. I dunno... )

Well 'homogenous' works for me, 'hetrogenous' is its opposite. 

-- 
Derek Parnell
Melbourne, Australia

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu