Thanks!
For maximum simplicity, you could define a default outer constructor:
> Minmax() = Minmax{Xy}(Xy(0,0),Xy(0,0))
>
> And then your example works (without the type parameter). If you want to
> specify the type, then you need to slightly generalize this default
> constructor to something like:
> Minmax{T}(::Type{T}) = Minmax{T}(T(0,0),T(0,0))
>
> Is that roughly what you were trying to do?
>
Yes, roughly, but what if I have another type Xyz that has more fields? I'd
like to hide this initialization complexity from the user and do it within
a function. Basically the real question is how to do
'Minmax{T}(T(0,0),T(0,0))' with arbitrary number of fields? A macro
(haven't written macros before)?
Kaj