[M3devel] returning an array from a function??

Jay jayk123 at hotmail.com
Sat Apr 5 21:47:20 CEST 2008


I made it a constant in the interface.
I shouldn't have to pay for heap allocation for constants.. :(

Thanks,
 - Jay


> Date: Sat, 5 Apr 2008 21:36:53 +0200
> From: lemming at henning-thielemann.de
> Subject: Re: [M3devel] returning an array from a function??
> To: jayk123 at hotmail.com
> CC: m3devel at elegosoft.com
> 
> 
> On Sat, 5 Apr 2008, Jay wrote:
> 
> > How does one return a constant array of unspecified size from a function?
> > You know, what might otherwise be a constant array in the interface, but I'd
> > rather hide it behind a function?
> 
> Since you cannot obtain a traced pointer to an existing object, you can 
> only create a reference as global variable, initialize it with NEW and := 
> in the modules startup code and return that pointer by 
> GetPathVariableNames.
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20080405/6a688317/attachment-0002.html>


More information about the M3devel mailing list