New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot declare a Complex number without i #2047
Comments
From A_M_C@bigpond.net.aumichael@wslx1:working> perl6 -v This is Rakudo Perl 6, version 2010.07-47-g9fd5eaa built on parrot 2.6.0 Copyright 2008-2010, The Perl Foundation The following my Complex $c = 1; fails at runtime with the error message Type check failed for assignment Declaring it as my Complex $c = 1 + 0i; works OK. The following is acceptable my Complex $c = 1i; as is my Rat $r = 1.0; For consistency it should be possible to leave out the imaginary value Regards, |
From @moritzOn Tue Aug 10 01:28:11 2010, A_M_C@bigpond.net.au wrote:
This conforms to the current specification. If you want something that Please notice that numeric type hierarchy in Perl 6 is not based on Note that in order not to surprise the casual programmar, (-1).sqrt Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
@moritz - Status changed from 'open' to 'rejected' |
From A_M_C@bigpond.net.auThanks Moritz, it just felt like I should be able to leave out the "+ 0i" since that's Thanks for the shiny new toy;) Regards, On 11/08/10 00:59, Moritz Lenz via RT wrote:
|
Migrated from rt.perl.org#77126 (status was 'rejected')
Searchable as RT77126$
The text was updated successfully, but these errors were encountered: