Re: access CTFE variables at compile time.

2013-07-10 Thread Don
On Wednesday, 10 July 2013 at 01:23:20 UTC, bearophile wrote: Meta: I think there's been mention a couple times of a ctfeWrite function that can print values at compile-time, but so far nobody's implemented it. That's not true. This is the ER:

Re: access CTFE variables at compile time.

2013-07-10 Thread bearophile
Don: Although that's a problem, it's not at all what's happened here. Right. I presume that several of the patches that are waiting for some time have some significant problems. Bye, bearophile

access CTFE variables at compile time.

2013-07-09 Thread JS
It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem is that we can not pass a variable to a template to create a print routine in the first place. e.g., we can't do mixin a!(s) if s is a string since s can't be

Re: access CTFE variables at compile time.

2013-07-09 Thread Meta
On Tuesday, 9 July 2013 at 22:49:38 UTC, JS wrote: It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem is that we can not pass a variable to a template to create a print routine in the first place. e.g., we can't

Re: access CTFE variables at compile time.

2013-07-09 Thread bearophile
Meta: I think there's been mention a couple times of a ctfeWrite function that can print values at compile-time, but so far nobody's implemented it. That's not true. This is the ER: http://d.puremagic.com/issues/show_bug.cgi?id=3952 And the patch:

Re: access CTFE variables at compile time.

2013-07-09 Thread JS
On Wednesday, 10 July 2013 at 01:10:37 UTC, Meta wrote: On Tuesday, 9 July 2013 at 22:49:38 UTC, JS wrote: It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem is that we can not pass a variable to a template to

Re: access CTFE variables at compile time.

2013-07-09 Thread Jonathan M Davis
On Wednesday, July 10, 2013 06:24:02 JS wrote: On Wednesday, 10 July 2013 at 01:10:37 UTC, Meta wrote: On Tuesday, 9 July 2013 at 22:49:38 UTC, JS wrote: It seems possible that we can print CTFE variables at compile time by using string mixes as the code below demonstrates. The problem