OK thanks. For clarity I'm assuming the leading C in CMinMaxClass is a typo?
I've come across some curious behavior. This was actually working for me last week:
class MINMAXCLASS
local min
local max
endclass
global min_max_t = new (MINMAXCLASS)
class WSCLASS
local status
min_max_t temperature
min_max_t windspeed
endclass
global ws = new(wsclass)
ws.temperature.max = 10
But now gives an error. But if I do this:
class MINMAXCLASS
local min
local max
endclass
class WSCLASS
local status
temperature = new (MINMAXCLASS)
windspeed = new (MINMAXCLASS)
endclass
global ws = new(wsclass)
ws.temperature.max = 10
Then change to the first code, it works with no error message. Am I just grabbing some garbage value that hasn't been collected yet?