CTFE question
Chris Cain
clcain at uncg.edu
Tue Aug 28 05:07:04 PDT 2012
On Tuesday, 28 August 2012 at 11:39:20 UTC, Danny Arends wrote:
> Ahhh I understand...
>
> As a follow up, is it then possible to 'track' filling a
> large enum / immutable on compile time by outputting a msg
> every for ?
>
> I'm generating rotation matrices for yaw, pitch and roll
> at compile time which can take a long time depending on
> how fine grained I create them.
I'm pretty sure there isn't. However, if you're just trying to
develop/test your algorithm, you could write a program that runs
it as a normal function (and just use writeln) as you develop it.
After it's done, you remove the writelns, mark the function as
pure and it should work exactly the same in CTFE.
More information about the Digitalmars-d-learn
mailing list