Re: ver 4 source preproc..e ?
- Posted by SDPringle Aug 07, 2009
- 4587 views
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