Re: monitoring variable evaluation time

2015-07-20 Thread Clayton via Digitalmars-d-learn
On Monday, 20 July 2015 at 10:11:10 UTC, Marc Schütz wrote: On Monday, 20 July 2015 at 08:53:52 UTC, Clayton wrote: [...] I'm not sure that's what you want to know, but... The evaluation time of expressions is completely deterministic. Global (module level) or static variables, default value

Re: monitoring variable evaluation time

2015-07-20 Thread Clayton via Digitalmars-d-learn
On Monday, 20 July 2015 at 09:29:26 UTC, anonymous wrote: On Monday, 20 July 2015 at 08:53:52 UTC, Clayton wrote: [...] You mean you want to know if some value is pre-computed during compilation? [...] Thankyou a lot for the suggestion. Am noting as I learn the language.

Re: monitoring variable evaluation time

2015-07-20 Thread via Digitalmars-d-learn
On Monday, 20 July 2015 at 08:53:52 UTC, Clayton wrote: What could be the best-tool for monitoring the evaluation time of a variable . What I usually do is run the command :- - dmd -J. program.d Then I inspect the program.o file using vi for presence of compile-time constants and enums. I am

Re: monitoring variable evaluation time

2015-07-20 Thread anonymous via Digitalmars-d-learn
On Monday, 20 July 2015 at 08:53:52 UTC, Clayton wrote: What could be the best-tool for monitoring the evaluation time of a variable . What I usually do is run the command :- - dmd -J. program.d Then I inspect the program.o file using vi for presence of compile-time constants and enums. I am