We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Migrated from rt.perl.org#130231 (status was 'rejected')
Searchable as RT130231$
The text was updated successfully, but these errors were encountered:
Code: Nil.chrs
Result: Use of Nil in numeric context in block <unit> at -e line 1
At the same time:
Code: Nil.ords
Result: Use of Nil in string context in block <unit> at -e line 1
I think that both should say that it is in string context.
Sorry, something went wrong.
On Thu, 01 Dec 2016 15:11:31 -0800, alex.jakimenko@gmail.com wrote:
Code: Nil.chrs Result: Use of Nil in numeric context in block <unit> at -e line 1 At the same time: Code: Nil.ords Result: Use of Nil in string context in block <unit> at -e line 1 I think that both should say that it is in string context.
chrs takes an array of Ints and returns a Str; it's trying to use Nil in a numeric context to get a number to work with.
ords takes a Str and returns an array of ints - it's trying to use Nil in a string context to get character to work with.
Seems fine. Rejecting ticket.
-- Will "Coke" Coleda
The RT System itself - Status changed from 'new' to 'open'
@coke - Status changed from 'open' to 'rejected'
.chrs takes a list of numbers. The Nil is used in numeric context, resulting in a 0, which after being .chr'ed results in a null string:
m: quietly say Nil.chrs eq "\x[0]"; # True rakudo-moar abc643: OUTPUT«True»
The warning is accurate.
No branches or pull requests
Migrated from rt.perl.org#130231 (status was 'rejected')
Searchable as RT130231$
The text was updated successfully, but these errors were encountered: