Bill Moseley <[EMAIL PROTECTED]> writes: >Didn't take long... > >SW_RESULTS is T_OBJECT typemap > >SW_RESULTS >SwishExecute( search, query ) > SW_SEARCH search > char *query > > PREINIT: > char * CLASS = "SWISH::API::Results"; > >So on the perl side I'd like 'query' to be optional, and to pass in NULL >if it doesn't exist (and to not croak if items != 2). Seems like a common >situation, but the only think that seems likely is using T_ARRAY typemap >and ellipsis. > >SW_RESULTS >SwishExecute( search, query, ... ) > >Is there a clean way to do this?
Yes: SW_RESULTS SwishExecute( search, query = NULL) -- Nick Ing-Simmons http://www.ni-s.u-net.com/
