Re: Eu improvements (part 4)

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

Chris Bensler wrote:
> Actually, while data structures would be useful too, I don't think that is 
> what we are actually in need of. What we need is a way to address the 
> global pollution created by all the index constants used for the pseudo-
> structures we already use routinely. We just need a way to name the 
> elements.

Turning my previous idea on it's head a bit, you could bury a bunch of enums
inside a type:
type cust(sequence...)
enum name, addr1, addr2, ... end enum
   ...
end type

cust c
  ?c[cust:name]

What I'm saying now is the emums don't do anything to the type, but are
available as qualified subscripts.

Just an idea,
Pete

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

Search



Quick Links

User menu

Not signed in.

Misc Menu