[C++-sig] How to exclude a function from being exported using pyste.
Patrick Hartling
patrick at vrac.iastate.edu
Sun Mar 30 07:56:53 CEST 2003
I'd like to chime in and vote for #2 unless there are better ideas. The
syntax is simple, and as long as the ordering of the overloads can be
guaranteed, it's easy enough to figure out which overload is which.
-Patrick
P.S. In case it isn't obvious, I too have run into a case where I would
like to exclude at least one overloaded method from an exposed class.
David Abrahams wrote:
> Nicodemus <nicodemus at globalite.com.br> writes:
>
>
>>exclude(Match(C.Name, 'const')) # to get the "const" version of the function
>>
>>But I have no idea if this system is reliable, or how it would work exactly.
>>
>>Does any one have a good suggestion on this?
>
>
> "Good?" no.
>
> I can suggest the following possibilities:
>
> 1. Intrusive: the C++ code is annotated with comments that say "this
> overload is excluded". I hate this one.
>
> 2. exclude(A.b.overload[1])
>
>
--
Patrick L. Hartling | Research Assistant, VRAC
patrick at vrac.iastate.edu | 2624 Howe Hall: 1.515.294.4916
http://www.137.org/patrick/ | http://www.vrac.iastate.edu/
More information about the Cplusplus-sig
mailing list