On 6/30/2010 8:03 PM, bearophile wrote:
Eric Poggel:
would it make sense to make struct instances and tuples the same thing?<
It's a nice idea, but if all structs become tuples, and D needs to support
separate compilation, then modules that define structs need to contain the
compiled methods (instantiated templates) that implement all the features of
Tuples. So to keep programs small I think it's better to keep structs simple,
and define a Tuple with richer semantics.
Bye,
bearophile
That's a shame. I feel like this (along with functions and delgates
being different) is one of the areas where the complexity of the
language really shows itself. I really liked the proposals you
presented though.