Re: subscripts

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

Carl wrote:

>Your while loop is semantically equivalent to my for loop...

You do not read the specs, and you don't even read your mail. Some
eight or nine hours before you woke up I had posted my second note on the
subject. I quote in full:

>The ultimate fetch ? :
>
>function fetch(object a, sequence b)
>    for i=1 to length(b) do
>        a = a[b[i]]
>    end for
>    return a
>end function
>
>Sorry. jiri

At this point, I want to say I was not aware of Michael's function,
which is virtually identical. You see, I hate OO bloats in general,
and Michael's 'swiss army knife' style approach gives me creeps. But
by the sound of it, it may be worth reading after all, there might be
some real gems in it somewhere, hiding under improbable names...
Sorry, Michael :).

Carl continued meekly:

>I've just added a little error checking here and there to tidy the
>function up a little.

You call it 'error checking', I call it 'aiding and abetting'. When the
specs allow sequences only, and some one tries to smuggle an atom
through, s/he should be caught and punished!

Carl's associative arrays: very important topic. I would like to make
few comments too, but later, probably at lunch time... jiri

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

Search



Quick Links

User menu

Not signed in.

Misc Menu