Hello,
I want to do following things:
// interface itf_base : I_Base;
// FBs FB_A implements I_Base; FB_B implements I_Base;
// create IF A THEN itf_base := __NEW(FB_A); ELSE itf_base := __NEW(FB_B); END_IF
The problem is __NEW operator returns a pointer not an interface reference.
There is an operator to convert interface to pointer "__QUERYPOINTER".
Is there a way to do the reverse conversion?
Best Kai
Figured it out myself,
just need to dereference the pointer ...
Log in to post a comment.
Hello,
I want to do following things:
// interface
itf_base : I_Base;
// FBs
FB_A implements I_Base;
FB_B implements I_Base;
// create
IF A THEN
itf_base := __NEW(FB_A);
ELSE
itf_base := __NEW(FB_B);
END_IF
The problem is __NEW operator returns a pointer not an interface reference.
There is an operator to convert interface to pointer "__QUERYPOINTER".
Is there a way to do the reverse conversion?
Best
Kai
Figured it out myself,
just need to dereference the pointer ...