Re: [Vala] Complex number support?



Ok,

the main problem is this: if we add the C99 complex types... we can't,
because Vala depends on Glib, and Glib follows the C89 spec because not all
the compilers that they want to support implements the C99 spec :( .

Now, i think that may be is possible to make conditional compiling in the
Glib library.. but it makes that many source codes (based on the native
complex numbers usage) wont be compilable in many compilers :( .

May be.. is possible to make a hack and make "artificial" types when the
complex types are not native (but, the problem, another time, remains on
that we wont make C codes like c = a+b when the types are complex, because C
have not operators overloading).

Sorry for the errors in the text, i'm not a good english speaker.

2010/12/12 pancake <pancake youterm com>



On Dec 12, 2010, at 12:11 AM, Evan Nemerson <evan coeus-group com> wrote:

On Sat, 2010-12-11 at 21:43 +0100, pancake wrote:
Would be also good to also support big numbers and rational ones. All
this stuff should be designed correctly and define where it must be
(dova,glib,vala)

Why not just create bindings for GMP, and possibly MPFR and MPC?


If we plan to add complex, big and rational numbers support to Vala,
writing bindings is not the solution.

This would probably require few CCodes more in order to support basic
arithmetics on the new data types. Which is conflicting with operator
overloading...

On Dec 10, 2010, at 6:57 PM, CaStarCo <castarco gmail com> wrote:

Hello, i have a question. C99 specifies support for complex numbers
(gcc
supports it, at least for complex float, complex double, long complex
double, complex int and long complex int types.

Does Vala support this type of numbers? (or will do?), I think that
it's an
interesting feature

Kind regards

--
- Per la llibertat del coneixement -
- Per la llibertat de la ment...       -
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list


_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list




-- 
- Per la llibertat del coneixement -
- Per la llibertat de la ment...       -


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]