Re: WISHLIST.TXT

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

Hi Christian,
I do not wish to dishearten you, in fact I'm glad to see yet another person
requesting change. However there is very little new in what you have asked
for. Except for a couple of your ideas, they have been asked for in one form
or another over the years. What I, and many others, have discovered is that
RDS is very resistant to change. But please keep up the pressure - maybe one
day we might all get a pleasant surprise.

I think the new ideas you have presented include the 'friend' scope for
variables, and 'lagging' variables. I can see the usefulness of a friend
scope and wouldn't mind that at all.

As for lagging, I don't think I've ever needed this concept in my code. The
closest I've come to this is a stack-type arrangement, in which the program
might always refer to the 'current' value of a variable but there would be a
routine to assign a new value while saving the previous value, and another
function to restore the previous value. I implement this in a sequence
thus...

  sequence v v = {}

  function setVar(sequence v, object x)
      return prepend(v, x)
  end function

  function restoreVar(sequence v)
      return v[2..length(v)]
  end function

  function getVar(sequence v)
      return v[1]
  end function

----------------
cheers,
Derek Parnell

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

Search



Quick Links

User menu

Not signed in.

Misc Menu