On Wed, Jan 09, 2013 at 12:12:02PM -0800, Walter Bright wrote: > On 1/9/2013 11:31 AM, H. S. Teoh wrote: > >I think it would be nice to have a separate function for parsing > >macro definitions. > > No. Where the macro definitions come from is a completely separate > problem, and the two should not be conflated.
I disagree. The macro definitions does not need to (and probably should not) be in the same place as the input file, but they do have to be defined somewhere. Yes you can just construct your own string[string] and hand that over to the macro expander, but it would be nice to also have a uniform syntax for defining macros in an external source, which can be parsed by a standard library function. It would be kinda disappointing to have a marvellous system for macro expansion, yet no standard way to define said macros, but everyone cooks their own syntax and parser for it. T -- Why have vacation when you can work?? -- EC
