bearophile wrote:
davidl:
why not make opDot some compile time stuff?
You mean run time.
this can be particular useful for COM
And GUIs, I guess. It smells of Object-C++, but the syntax is nicer.
But such runtime code must be not included into the executable if this feature
is nowhere used in the code. D executable are already quite big enough.
Bye,
bearophile
Syntax and lack of garbage collection is why I never seriously
considered Object-C++.
Seriously... It's important to be able to write code that can be
optimized at compile time...and it's also important to be able to write
code that can be dynamic at run-time. D has been lacking in the second
set of capabilities, though it's been dynamite at the first.
... After saying this I started thinking a bit more. D is more dynamic
that we normally give it credit for, but the syntax for dynamic
interaction is painful, so it tends not to be used.