Yes in that case, because non static reference field in UDT are not yet supported in FreeBASIC.paul doe wrote:Not true, because there's no orthogonality between references and pointersfxm wrote:In FreeBASIC, anything that can be done with pointers can be done with references (because a reference is the dereferencing of an internal pointer, but accessible by user).
Possible future syntax:
Code: Select all
type SomeObject
public:
declare constructor( _
byref as ISomething )
declare destructor()
private:
declare constructor()
byref m_something as ISomething = *cptr(ISomething ptr, 0)
end type