Types: The Next Generation (Was: Why is phobos so wack?)
Marco Leise via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 10 17:16:42 PDT 2017
Am Sun, 9 Jul 2017 16:22:16 -0400
schrieb "Nick Sabalausky (Abscissa)"
<SeeWebsiteToContactMe at semitwist.com>:
> […] a sufficiently-smart compiler could conceivably even
> choose "runtime" vs "compile-time" (or even, "it varies")
> based on optimization priorities.
GCC already does this, i.e. find runtime arguments of constant
value and generate a second instance of the function with that
argument optimized out.
--
Marco
More information about the Digitalmars-d
mailing list