View unanswered posts | View active topics It is currently Sun Dec 21, 2014 5:36 pm






Reply to topic  [ 5 posts ] 
Possible bug in STRUCTS ? 
Author Message
Rookie

Joined: Sun Feb 10, 2008 3:01 pm
Posts: 2
Post Possible bug in STRUCTS ?
In the following example, ROBOTC will treat the variables blob.VelocityX and blob.VelocityY as type "int" or "long" (whole numbers only). The only work around was to create the variables outside of a struct.

typedef struct {
float VelocityX;
float VelocityY;
} COORD;

COORD blob;

Is this a known problem?


Tue Feb 12, 2008 11:39 am
Profile
Expert
User avatar

Joined: Fri Nov 09, 2007 4:51 am
Posts: 121
Location: Hungary, Europe
Post bug tracker
Hi,

dunno, but it is advisable to report such experiences in the NXT bug tracker:

http://www.education.rec.ri.cmu.edu/tools/mantis/login_page.php

I've registered on mantis with the same username as here in the forums.

elemes


Tue Feb 12, 2008 11:56 pm
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
I've looked into this and it is definitely a compiler bug. I have the fix and it will be in the next release.


Wed Feb 27, 2008 12:20 pm
Profile
Rookie

Joined: Sun Feb 10, 2008 3:01 pm
Posts: 2
Post Bug in structs
Thanks...I'll look forward to that update to make my code cleaner.


Wed Feb 27, 2008 12:26 pm
Profile
Creator
Creator

Joined: Fri Feb 09, 2007 9:21 am
Posts: 615
Post 
This is fixed in V1.17 which should be posted as pre-release this week.


Tue Mar 04, 2008 10:39 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.