paul doe wrote:fxm 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).
Not true, because there's no orthogonality between references and pointers
Yes in that case, because non static reference field in UDT are not yet supported in FreeBASIC.
Possible future syntax:
Code: Select all
declare constructor( _
byref as ISomething )
byref m_something as ISomething = *cptr(ISomething ptr, 0)