Re: Compile-time generated code... not that nice

2009-05-31 Thread Steve Teale
Ary Borenszweig Wrote: > I just realized that code generated at compile-time (with string mixins) > is hard (or impossible) to debug (I mean at runtime, not just at > compile-time). Do you think it's a big shortcomming of D? How can this > be solved? > > Maybe the compiler can generate a file

Re: Compile-time generated code... not that nice

2009-05-30 Thread davidl
在 Sun, 31 May 2009 05:31:45 +0800,Jarrett Billingsley 写道: Oh I certainly don't disagree with you that string mixins make this kind of stuff extremely difficult to debug. It's even difficult for the compiler to issue reasonable error messages; currently it seems to issue errors within string

Re: Compile-time generated code... not that nice

2009-05-30 Thread Jarrett Billingsley
On Sat, May 30, 2009 at 4:42 PM, Ary Borenszweig wrote: > Jarrett Billingsley escribió: >> >> On Sat, May 30, 2009 at 3:03 PM, Ary Borenszweig >> wrote: >>> >>> I just realized that code generated at compile-time (with string mixins) >>> is >>> hard (or impossible) to debug (I mean at runtime, no

Re: Compile-time generated code... not that nice

2009-05-30 Thread Ary Borenszweig
Jarrett Billingsley escribió: On Sat, May 30, 2009 at 3:03 PM, Ary Borenszweig wrote: I just realized that code generated at compile-time (with string mixins) is hard (or impossible) to debug (I mean at runtime, not just at compile-time). Do you think it's a big shortcomming of D? How can this

Re: Compile-time generated code... not that nice

2009-05-30 Thread Jarrett Billingsley
On Sat, May 30, 2009 at 3:03 PM, Ary Borenszweig wrote: > I just realized that code generated at compile-time (with string mixins) is > hard (or impossible) to debug (I mean at runtime, not just at compile-time). > Do you think it's a big shortcomming of D? How can this be solved? > > Maybe the co

Re: Compile-time generated code... not that nice

2009-05-30 Thread Robert Jacques
On Sat, 30 May 2009 15:03:10 -0400, Ary Borenszweig wrote: I just realized that code generated at compile-time (with string mixins) is hard (or impossible) to debug (I mean at runtime, not just at compile-time). Do you think it's a big shortcomming of D? How can this be solved? Maybe t

Compile-time generated code... not that nice

2009-05-30 Thread Ary Borenszweig
I just realized that code generated at compile-time (with string mixins) is hard (or impossible) to debug (I mean at runtime, not just at compile-time). Do you think it's a big shortcomming of D? How can this be solved? Maybe the compiler can generate a file with the contents of a module with