[Rock-dev] [rock] #418: ruby: base/Vector3d inconsistency
rock
noreply at opendfki.de
Fri Jan 31 14:18:54 CET 2014
#418: ruby: base/Vector3d inconsistency
----------------------------+-----------------------------------
Reporter: Alexander.Duda | Owner: rock-dev-mailing-list
Type: defect | Status: new
Priority: major | Milestone:
Component: base | Keywords:
----------------------------+-----------------------------------
base/Vector3d is the only type of all base/VectorVectorNd having a ruby
extension which introduces a problematic inconsistency when accessed from
ruby:
my_type.vec3d.x = 123 # OK
my_type.vec3d[0] = 123 # OK
my_type.vec3d.data[0] = 123 # Fails silently
The reason for this is that vec3d.data only returns a local copy of the
data stored in vec3d
which get modified but this change is never reflected by the real type.
This is counter intuitive as all other VectorNd types can be modified in
this way because of the missing ruby extension.
my_type.vec4d.data[0] = 123 # OK
--
Ticket URL: <https://rock.opendfki.de/ticket/418>
rock <https://rock.opendfki.de>
rock: the robot construction kit
More information about the Rock-dev
mailing list