Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Strange interaction of bigint and foreach

by salva (Abbot)
on Apr 11, 2013 at 13:02 UTC ( #1028144=note: print w/ replies, xml ) Need Help??


in reply to Strange interaction of bigint and foreach

This is a bug in perl, probably caused by the compiler optimizing the foreach(<constant range>) {} construction into a C-like loop internally in order to reduce memory usage.

You can try reporting it to p5p.

update: Even if the problem is the range operator, this is still IMO a bug in Perl. The range operator should be overloadable or at least it should use the overloaded + and < operators.


Comment on Re: Strange interaction of bigint and foreach
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028144]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2015-07-29 03:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls