Hi Roland,
This should work on your o2 version:
uses console
type rect
long left
long top
long right
long bottom
end type
function f(rect*rc) as rect*
'rect rc at prc
printl "in function f: " rc.left ", " rc.top ", "rc.right ", "rc.bottom
return &rc
end function
RECT Rect1 = {10,15,100,200}
RECT *ptRect2
&ptRect2 = f(Rect1)
&ptRect2 = f(rect{10,15,100,200}) 'anon rect
printl "ptRect = " ptRect2.left ", " ptRect2.top ", "ptRect2.right ", "ptRect2.bottom
printl "Enter: " : waitkey