Commit 71bbce90 authored by Robert Bradshaw's avatar Robert Bradshaw

no need to forward declare extension types

parent 7c7cc9da
...@@ -404,16 +404,7 @@ Forward-declaring extension types ...@@ -404,16 +404,7 @@ Forward-declaring extension types
=================================== ===================================
Extension types can be forward-declared, like :keyword:`struct` and Extension types can be forward-declared, like :keyword:`struct` and
:keyword:`union` types. This will be necessary if you have two extension types :keyword:`union` types. This is usually necessary.
that need to refer to each other, e.g.::
cdef class Shrubbery # forward declaration
cdef class Shrubber:
cdef Shrubbery work_in_progress
cdef class Shrubbery:
cdef Shrubber creator
If you are forward-declaring an extension type that has a base class, you must If you are forward-declaring an extension type that has a base class, you must
specify the base class in both the forward declaration and its subsequent specify the base class in both the forward declaration and its subsequent
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment