Fernando Perez wrote:

>On 7/7/06, Travis Oliphant <[EMAIL PROTECTED]> wrote:
>
>  
>
>>Also, (in latest SVN)  the MAXMIN macros can be avoided using
>>
>>#define PYA_NOMAXMIN
>>
>>before including arrayobject.h
>>    
>>
>
>Mmh, this looks crufty to me: special cases like these look bad in a
>library, and break the 'just works' ideal we all strive for, IMHO.
>  
>
But, it fixes the problem he's having without breaking anybody else's 
code that uses the MAX / MIN macros, already.

Besides, the PY_ARRAY_TYPES_PREFIX business is a lot more crufty.

I'm not opposed to putting a *short* prefix in front of everything (the 
Int32, Float64, stuff came from numarray which now has it's own 
back-ward compatible header where it could be placed now anyway).   
Perhaps npy_  would be a suitable prefix. 

That way we could get rid of the cruft entirely.

I suppose we could also provide the noprefix.h header that defines the 
old un-prefixed cases for "backwards NumPy compatibility".

-Travis


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to