Ion Alexandru Morega <[EMAIL PROTECTED]> wrote: > This is the new classes/complex.pmc, tests included. It supports string > parsing (in the form "a + bi", see the docs for more), string-keyed > access to "real" and "imag" and simple numerical operations.
Whee, great, thaks - applied. > ... However, > the function get_number (it should return the modulus) is not > implemented, because I couldn't find sqrt() anywhere. Is it OK if I use > the one in the standard library? Sure. It's an ISO C function. The sqrt opcode is using it anyway. I've changed the patch a bit, so that it compiles with gcc 2.95.3. It contained come CPPish variable declarations after code lines. Patches for config wanted that set appropriate gcc flags to catch that kind of error. > enjoy, > alexm leo