Re: Eu improvements (part 4)

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu