[C++-sig] Re: Re: Retiring "ref", etc.

David Abrahams david.abrahams at rcn.com
Wed Jun 12 03:34:30 CEST 2002


From: "Dave Hawkes" <daveh at cadlink.com>


> Then how are functions like PyObject_Dir handled if you can't have a
valid
> NULL pointer?

Simple: Use overloading (unavailable in "C") to represent dir(o) and dir().
If there is no frame active when you call dir(), it's an error, and an
exception is raised. I don't know what Python exception to translate this
into, of course...

-Dave






More information about the Cplusplus-sig mailing list