Yea I tried the following, and it seems to work :)
Type coo
Field a
Field b
End Type
test.coo = New coo
test = jack(1,2)
Print test\a
Print test\b
WaitKey()
End
Function jack.coo (aa, bb)
Local pff.coo = New coo
pff\a = aa
pff\b = bb
Return pff
End Function
Thanks