Initialization of the Associative arrays
BCS
ao at pathlink.com
Tue Jul 15 08:36:50 PDT 2008
Reply to Bill,
>> I think much of this might come from the need to be able to eyeball
>> parse the code
>>
>> auto a = [ .... 16 different function calls ...];// what is the type
>> of a?
>>
> Who cares what the type is as long as it's sufficient to hold the
> results of all those function calls? If you cared you wouldn't have
> been using auto there.
>
"Who cares" is correct. Maybe not the guy who wrote it, but 6 months down
the line it might crop up and make a big difference to someone else ("what
overload is this using?", "Why can't I cast to X", "at what point will this
overflow", etc.)
More information about the Digitalmars-d-learn
mailing list