Commit 9603ff6c authored by Mark Florisson's avatar Mark Florisson

branch merge

parents 3c930a48 5275b625
...@@ -165,7 +165,7 @@ We now need to declare the attributes for use on Cython:: ...@@ -165,7 +165,7 @@ We now need to declare the attributes for use on Cython::
Declare a var with the wrapped C++ class Declare a var with the wrapped C++ class
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Now, we use cdef to declare a var of the class with the know C++ ``new`` statement:: Now, we use cdef to declare a var of the class with the C++ ``new`` statement::
cdef Rectangle *rec = new Rectangle(1, 2, 3, 4) cdef Rectangle *rec = new Rectangle(1, 2, 3, 4)
cdef int recLength = rec.getLength() cdef int recLength = rec.getLength()
......
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