Another interesting hack: expand a static array into parameter arguments

Andrej Mitrovic andrej.mitrovich at gmail.com
Thu Apr 3 01:59:05 PDT 2014


On 4/2/14, bearophile <bearophileHUGS at lycos.com> wrote:
> In Python2 and Haskell it's a built-in feature.

But what is the performance cost? In D it is a compile-time feature,
everything can be inlined.

Also, what this shows is how you can take advantage of *existing*
features to implement something interesting. It shows power, rather
than the ability to implement special cases in the
compiler/interpreter.


More information about the Digitalmars-d mailing list