Re: [Pharo-project] Complex neurotic
St?phane Ducasse <stephane.ducasse@inria.fr>
What I would love is the following: that we get a good Complex package! Since we can do method extensions in Smalltalk we can design a really nice Complex > packages with its own tests. We could publish for now Complex into PharoTaskForces or create a PharoExternalPackages or whatever.
If you point me to the package docs, I am happy to make a package. Note that the Complex cuts across a number of classes [Point,Float,Number,Object]. Is the desired behavior that (-1 sqrt) raise and exception when the Complex package is not loaded but return 1i when loaded? I presume that we could simply add the hyperbolic trig functions (and some tests) to Float? -KenD
Ken, The desired behavior appears to be that -1 sqrt raises an error regardless of the complex package; -1 asComplex sqrt works when the package is installed. Sig, is that a fair statement of your position? Bill -----Original Message----- From: pharo-project-bounces@lists.gforge.inria.fr [mailto:pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Ken.Dickey Sent: Wednesday, August 12, 2009 9:59 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Complex neurotic St?phane Ducasse <stephane.ducasse@inria.fr>
What I would love is the following: that we get a good Complex package! Since we can do method extensions in Smalltalk we can design a really nice Complex > packages with its own tests. We could publish for now Complex into PharoTaskForces or create a PharoExternalPackages or whatever.
If you point me to the package docs, I am happy to make a package. Note that the Complex cuts across a number of classes [Point,Float,Number,Object]. Is the desired behavior that (-1 sqrt) raise and exception when the Complex package is not loaded but return 1i when loaded? I presume that we could simply add the hyperbolic trig functions (and some tests) to Float? -KenD _______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
2009/8/12 Schwab,Wilhelm K <bschwab@anest.ufl.edu>:
Ken,
The desired behavior appears to be that -1 sqrt raises an error regardless of the complex package; -1 asComplex sqrt works when the package is installed. Â Sig, is that a fair statement of your position?
Right. The presence of Complex numbers should not change any existing behavior of non-complex numbers.
Bill
-----Original Message----- From: pharo-project-bounces@lists.gforge.inria.fr [mailto:pharo-project-bounces@lists.gforge.inria.fr] On Behalf Of Ken.Dickey Sent: Wednesday, August 12, 2009 9:59 AM To: Pharo-project@lists.gforge.inria.fr Subject: Re: [Pharo-project] Complex neurotic
St?phane Ducasse <stephane.ducasse@inria.fr>
What I would love is the following: that we get a good Complex package! Since we can do method extensions in Smalltalk we can design a really nice Complex > packages with its own tests. We could publish for now Complex into PharoTaskForces or create a PharoExternalPackages or whatever.
If you point me to the package docs, I am happy to make a package. Â Note that the Complex cuts across a number of classes [Point,Float,Number,Object].
Is the desired behavior that (-1 sqrt) raise and exception when the Complex package is not loaded but return 1i when loaded?
I presume that we could simply add the hyperbolic trig functions (and some tests) to Float?
-KenD
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- Best regards, Igor Stasenko AKA sig.
participants (4)
-
csrabak@bol.com.br -
Igor Stasenko -
Ken.Dickey -
Schwab,Wilhelm K