On Sun, Aug 30, 2009 at 11:17 PM, Slava Pestov<[email protected]> wrote: > Joe, > > If a C function has a declared return value that is a pointer to a > struct, should it be boxed in a C struct object automatically? Right > now it just returns an alien object. Do you see any potential issues > with this approach? One thing is that it might break code that checks > for a null pointer by testing the return value against f; we could > either not box f in a C struct, or add a null? word defined as '>c-ptr > not'.
In addition to that problem, a pointer return value can point either to a single object or an array of objects. I don't think there's enough information from just a pointer type to box one intelligently. -Joe ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
