[Gambas-user] Native Complex type?
Benoît Minisini
gambas at ...1...
Sun Dec 22 19:09:14 CET 2013
Le 21/12/2013 16:53, Tobias Boege a écrit :
> Hi Benoit,
>
> is it planned to support complex numbers in Val() or to have an IsComplex()
> function?
No at the moment.
It's a problem for Val(), because some people may assume that Val() only
returns a Date, a Boolean, a Float or an Integer.
>
> I see the difficulties that come with this, like having to incorporate
> complex numbers into the interpreter directly and since Complex needs to be
> an object, intermixing objcts and native datatypes in the aforementioned
> functions, etc.. but I wanted to ask anyway. (Then we could also make Sqr()
> support complex numbers, etc.)
>
> It would unify the way we work with complex numbers even more which would be
> appreciated on our side.
>
> Regards,
> Tobi
>
--
Benoît Minisini
More information about the User
mailing list