You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I feel like here going out of range may be more of a problem than in C++ (this is not related to this PR but just indexing out of range a `std::deque`):
event=Frame()
hits=ExampleHitCollection()
hits[0] # seg faulthits[1] # <cppyy.gbl.MutableExampleHit object at 0x55dcd5d30d50>hits[1].x() # seg faulthits.create(0, 1, 2.3, 4)
hits[0] # <cppyy.gbl.MutableExampleHit object at 0x55dcc4324040>hits[1] # <cppyy.gbl.MutableExampleHit object at 0x55dcd5d572b0>hits[2] # seg fault
It's inconsistent since the behavior is undefined, could be a bit hard to debug when you go out of range and it may seem to work but then it doesn't later on. I'm not sure if there are options, not checking in C++ I think is a design choice since there is also .at, but in python no one is going to use that probably
It's inconsistent since the behavior is undefined, could be a bit hard to debug when you go out of range and it may seem to work but then it doesn't later on. I'm not sure if there are options, not checking in C++ I think is a design choice since there is also
.at
, but in python no one is going to use that probablyOriginally posted by @jmcarcell in #447 (comment)
The text was updated successfully, but these errors were encountered: