Opened 14 years ago
Last modified 14 years ago
#1499 closed defect (fixed)
External objects constructor/deconstructor should use external functions
Reported by: | Martin Sjölund | Owned by: | Martin Sjölund |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | Martin Sjölund, Adrian Pop |
Description
The following should work (and does if called as an external function: MyExtObj.constructor({1,2,3,4,5})... which is disallowed...).
function constructor input Real r[:]; output MyExtObj obj; external "C" obj = myConstructor(r,size(r,1),{1,2,3,4},"abc"); end constructor;
Also, we should probably push/pop external objects to a stack. Right now, we only support construction of external objects during initialization :)
Note:
See TracTickets
for help on using tickets.