
  
class cc
'=======

double a,b,c


method init()
  this<=1.5,2.5,3.5
end method

method del()
  freememory @this
end method

method show() as string
  return "abc values: " a ", " b ", " c
end method

end class

'#recordof cc

'class factory function
'======================


function CreateCC() as cc ptr
  cc *c
  @c=getmemory sizeof cc
  c.init
  return @c
end function

'test
'====

cc*d=CreateCC()
print d.show
d.del
