Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004236 [Croquet] Hedgehog minor always 07-12-06 08:08 07-12-06 08:08
Reporter bfowlow View Status public  
Assigned To
Priority normal Resolution open  
Status new  
Summary 0004236: Matrix + Vector3 gives infinite recursion, rather than error
Description Just an unfortunate trap for the unwary...

Evaluating
      Matrix4x4 identity + (1@1@1)
gives an infinite recursion.

The + is handled by FloatArray as

        ^ self clone += anObject

which invokes Matrix4x4 +=;
that tries a primitive, which fails,
and then falls back to

        ^super + anObject.

which is a recursive call to FloatArray +,
which clones again and calls += again.

Of course it's a bug to call matrix+vector in the first place,
but the punishment seems a little disproportionate :-).


Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
07-12-06 08:08 bfowlow New Issue


Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
27 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker