Let's assume that I have defined composite types
type Xy
x
y
end
type Minmax{T}
min::T
max::T
end
To make code readable, I'd like to initialize nested composite type
variable like this:
var=Minmax{Xy}()
var.min.x = 0
var.max.x = 1
var.min.y = -10
var.max.y = 0
How to accomplish this? The problem is that
var=Minmax{Xy}()
does not work.
Any suggestions, other approaches?
Cheers,
Kaj
