FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Inconsistent code generation

 
Post new topic   Reply to topic     Forum Index -> Yage
View previous topic :: View next topic  
Author Message
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Sat Jan 27, 2007 1:47 pm    Post subject: Inconsistent code generation Reply with quote

I've been having some serious issues with code generation with dmd 1.0 and 1.004, specifically with converting rotation matrices to quaternions to axis-angle vectors and back again.
Code:
module yage.main;

import std.stdio;
import yage.core.all;

void main()
{
   Matrix a; // defaults to identity matrix
   writefln(a);
   writefln(a.toQuatrn().toAxis());
   writefln(a.toAxis()); // commenting out this line changes the result of the previous line.
}


a.toAxis() returns a.toQuatrn().toAxis(), so the results should always be the same anyway. I might see where I can get with a debugger, and I might try to narrow it down to a test case and report it as a bug, but otherwise I'm pretty clueless as to what to do about it.
Back to top
View user's profile Send private message
JoeCoder



Joined: 29 Oct 2005
Posts: 294

PostPosted: Sat Jan 27, 2007 7:08 pm    Post subject: Reply with quote

DMD 0.177 is the last version where Yage passes all of the Vector, Matrix, and Quatrn unit tests in the core library, so it looks like the trouble began there. I'm reverting to it until Walter fixes these bugs.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Yage All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group