String Mixins & Compile Time Evaluation

2009-11-17 Thread Travis Boucher
I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be evaluated at compile time. For example: char[] myFunc1() { return "int a = 1;"; } char[] myFunc2() { char[] myFunc3() { return "int b = 2;";

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Don
Travis Boucher wrote: I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be evaluated at compile time. For example: char[] myFunc1() { return "int a = 1;"; } char[] myFunc2() { char[] myFunc3() {

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Travis Boucher
Don wrote: Travis Boucher wrote: I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be evaluated at compile time. For example: char[] myFunc1() { return "int a = 1;"; } char[] myFunc2() { char[] myFunc3

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Bill Baxter
On Tue, Nov 17, 2009 at 2:07 AM, Don wrote: > Travis Boucher wrote: >> >> I've been playing with string mixins, and they are very powerful. >> >> One thing I can't figure out is what exactly can and cannot be evaluated >> at compile time. >> >> For example: >> >> >> char[] myFunc1() { >>    r

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Bill Baxter
On Mon, Nov 16, 2009 at 8:25 PM, Travis Boucher wrote: > Don wrote: >> >> Travis Boucher wrote: >>> >>> I've been playing with string mixins, and they are very powerful. >>> >>> One thing I can't figure out is what exactly can and cannot be evaluated >>> at compile time. >>> >>> For example: >>> >

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Don
Bill Baxter wrote: On Tue, Nov 17, 2009 at 2:07 AM, Don wrote: Travis Boucher wrote: I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be evaluated at compile time. For example: char[] myFunc1() { return "in

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Bill Baxter
On Tue, Nov 17, 2009 at 4:17 AM, Don wrote: > Bill Baxter wrote: >> >> On Tue, Nov 17, 2009 at 2:07 AM, Don wrote: >>> >>> Travis Boucher wrote: I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be eva

Re: String Mixins & Compile Time Evaluation

2009-11-17 Thread Don
Bill Baxter wrote: On Tue, Nov 17, 2009 at 4:17 AM, Don wrote: Bill Baxter wrote: On Tue, Nov 17, 2009 at 2:07 AM, Don wrote: Travis Boucher wrote: I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be evaluated at

Re: String Mixins & Compile Time Evaluation

2009-11-27 Thread Kuba Ober
Don wrote: Bill Baxter wrote: On Tue, Nov 17, 2009 at 4:17 AM, Don wrote: Bill Baxter wrote: On Tue, Nov 17, 2009 at 2:07 AM, Don wrote: Travis Boucher wrote: I've been playing with string mixins, and they are very powerful. One thing I can't figure out is what exactly can and cannot be