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
The following code fails if debugging is enabled
class Vector include Enumerable def initialize(coordinates) @coordinates = coordinates end def each(&block) @coordinates.each(&block) end def +(other) Vector.new(zip(other).collect { |x, y| x + y }) end end v1 = Vector.new([1.0, 2.0]) v2 = Vector.new([2.0, 3.0]) v1 + v2
The message is TypeError: no implicit conversion of nil into String.
TypeError: no implicit conversion of nil into String
The code runs just fine if the debugging is not enabled.
An equivalent implementation without zip doesn't have this problem.
BTW: I know there is Vector class in standard ruby library and Vector3d in Sketchup API. This is just an example, how debugger fails.
Vector
Vector3d
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code fails if debugging is enabled
The message is
TypeError: no implicit conversion of nil into String
.The code runs just fine if the debugging is not enabled.
An equivalent implementation without zip doesn't have this problem.
BTW: I know there is
Vector
class in standard ruby library andVector3d
in Sketchup API. This is just an example, how debugger fails.The text was updated successfully, but these errors were encountered: