Date: | Mon May 14 12:22:39 2002 | |
Subject: | returning pointers | |
From: | mhl | |
Volume-ID: | 1020414.02 |
I know how to pass and return a pointer of specific type from C to poplog for example, external declare test in c; int *foo(x); int *x; {} endexternal; external load test; 'external.so' endexternal; Which may correspond to a C function (in external.so) int *foo(int *x) { int *y; int z; z=(*x)+4; y=&z; return y; } Is there a way to return arbitary (unspecified type) pointers? For example would it be possible to return a pointer to a C++ class? Thanks -- Mike |