Demo entry 3326457

small snipet


Submitted by biocratos on Dec 15, 2015 at 06:15
Language: Cython. Code size: 471 Bytes.

cimport dummy as dm

def d1():

cdef d2:
    cdef int a
    b = 'string1'

cpdef int d3(int c, float d):
    return c * d

# from
cdef extern from "Rectangle.h" namespace "shapes":
    cdef cppclass Rectangle:
        Rectangle(int, int, int, int) except +
        int x0, y0, x1, y1
        int getLength()
        int getHeight()
        int getArea()
        void move(int, int)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).