Skip Menu |

This queue is for tickets about the Math-Curve-Hilbert CPAN distribution.

Report information
The Basics
Id: 29437
Status: new
Priority: 0/
Queue: Math-Curve-Hilbert

People
Owner: Nobody in particular
Requestors: TWILDE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.04
Fixed in: (no value)



Subject: Initial X/Y values of 0 not possible
It seems to be impossible to start a Hilbert curve on coordinates (0,0) using Math::Curve::Hilbert - passing raw "0" values for X and Y causes them to be overridden because of the use of ||= later in the code, and passing references to scalars containing zero (as the docs indicate is required) causes dereferencing problems because the values are explicitly turned into references later in the code without first checking if they are already references. A simple defined test instead of the ||= would probably solve the problem of passing in actual values, and would probably be the simplest course of action.