Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static array creation #654

Closed
robertwb opened this issue Oct 3, 2008 · 2 comments
Closed

static array creation #654

robertwb opened this issue Oct 3, 2008 · 2 comments

Comments

@robertwb
Copy link
Contributor

robertwb commented Oct 3, 2008

One should be able to do

cdef double a[= [0.5, 0.3, 0.1, 0.1](])

or even

cdef foo(double*):
    pass

foo([1,2,3])

Note that this would only work for '''literal''' lists, to avoid allocation issues

Migrated from http://trac.cython.org/ticket/93

@robertwb
Copy link
Contributor Author

robertwb commented Oct 8, 2008

@robertwb changed milestone from wishlist to 0.9.8.2
resolution to fixed
status from new to closed
commented

Fixed in http://hg.cython.org/cython-devel/rev/302abc2245aa through http://hg.cython.org/cython-devel/rev/89a0907f44d1

@robertwb robertwb closed this as completed Oct 8, 2008
@robertwb
Copy link
Contributor Author

robertwb commented Nov 8, 2008

@robertwb changed component from Code Generation to Parsing
commented

@robertwb robertwb added this to the 0.10 milestone Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant