http://www.realsoftware.com/feedback/viewreport.php?reportid=rwwuyaeh

Consider a call to a Declared library function that returns a pointer to a
structure. One might want to use the result by passing it to an RB function
with a parameter defined as:
"ByRef Arg1 as myStructure", It would be useful to be able to pass a value
of datatype Ptr so we were able to use the pointer derived from a Declare
call and dereference it inside the function
(similar to how one can dereference a pointer to a structure using
myPointer.Structurename)

One could just use Ptr as the argument datatype, but then one loses some
readability compared to "ByRef arg as Mystructure"

In addition - doing so makes the likelihood of getting duplicate method
errors in cases where several RB functions are needed with pointers to
different structures.


For example if we have two overloaded methods:
print( ByRef arg1 as Struct1 ),
and 
print( ByRef arg1 as Struct2 )

then we cannot replace them with

methods print( arg1 as Ptr ),
and 
print( ByRef arg1 as Ptr )


Sign on here:


http://www.realsoftware.com/feedback/viewreport.php?reportid=rwwuyaeh



Regards,

Dan

_______________________________________________________
www.13flatFIVE.com
The C++ <> REALbasic code migration specialists


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to