Re: ver 4 source preproc..e ?

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

Sometimes I would like to do something like:

C wouldn't make you retype these things twice.. constant Monday = 1, Tuesday = 2, ... constant WeekDayNames = { "Monday", "Tuesday", ...

puts(1, WeekDayNames[Monday]) Prints Monday.

I wouldn't really use the C macro processor to do function inlining. I would like to see a method of only having to type the days of the week once in EUPHORIA. The C macro preprocessor allows you to do this. Until named enums and a function for converting values back to literals exist in EUPHORIA that may be what some people may do. I can't remember how they do that though.

Shawn

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

Search



Quick Links

User menu

Not signed in.

Misc Menu