array of elements of various subclasses
jessekphillips+D at gmail.com
Sun Nov 7 11:08:17 PST 2010
> No, in fact a variadic param list is not an array -- this is according to TDPL an iternal type of the language. Trying to assign it to an X var throws:
> DeeMatch.d(371): Error: cannot implicitly convert expression (patterns) of type DeeMatch.Pattern to Pattern
> Well, actually, the type of the expression given in the error (DeeMatch.Pattern) is wrong: this is the type of each element of the variadic list.
Well I took the example for type safe variadics and added an int fish storing the array... So am I missing something?
More information about the Digitalmars-d-learn