Re: Eu improvements (part 4)
- Posted by ags <eu at 531pi.co.nz> Jan 07, 2007
- 659 views
Pete Lomax wrote: > > inside a type: > }}} <eucode> > type cust(sequence...) > enum name, addr1, addr2, ... end enum > ... > end type > > cust c > ?c[cust:name] > </eucode> {{{ Yeah, that looks good. After reading your post before this I realised that enums (as I suggested) would be just as polluting, since you'd have to call the enum fields something like customer_first_name, cust_last_name, cust_balance, etc. More typing but maybe still workable. I like what you've proposed above, but why can't you say: c.name since c is a cust type? Gary