Talk:Compile-time calculation

From Rosetta Code
Revision as of 07:42, 13 July 2010 by rosettacode>ShinTakezou (→‎Ada: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Latest comment: 13 years ago by ShinTakezou in topic Ada

D Example

Should be correct. I queried a D developer, and got this:

22:24 <@shortcircuit> feep: Could you check on this? 
                      http://rosettacode.org/mw/index.php?title=Compile-time_calculation&diff=75121&oldid=prev
22:25  * shortcircuit wishes he knew of a channel full of D programmers that would find such queries interesting.
22:26 <+feep> hah
22:27 <+feep> shortcircuit: no, it's run at compile time
22:27 <+feep> (you can verify this by disassembling main)
22:28 <+feep> shortcircuit: enum is D2's word for "constant symbol"
--Michael Mol 03:31, 19 February 2010 (UTC)Reply[reply]
Thanks for checking this! I added a comment to the example. So the next D-illiterate like me will not be confused ;-) - Wmeyer 16:44, 19 February 2010 (UTC)Reply[reply]

Ada

Tried with gnat and analysing the produced asm, it seems that the computation is not done at compile-time. --ShinTakezou 07:42, 13 July 2010 (UTC)Reply[reply]