|
Page 1 of 1
|
[ 5 posts ] |
|
Possible bug in STRUCTS ?
| Author |
Message |
|
jcarter
Rookie
Joined: Sun Feb 10, 2008 3:01 pm Posts: 2
|
 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 |
|
 |
|
elemes
Expert
Joined: Fri Nov 09, 2007 4:51 am Posts: 121 Location: Hungary, Europe
|
 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 |
|
 |
|
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 613
|
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 |
|
 |
|
jcarter
Rookie
Joined: Sun Feb 10, 2008 3:01 pm Posts: 2
|
 Bug in structs
Thanks...I'll look forward to that update to make my code cleaner.
|
| Wed Feb 27, 2008 12:26 pm |
|
 |
|
Dick Swan
Creator
Joined: Fri Feb 09, 2007 9:21 am Posts: 613
|
This is fixed in V1.17 which should be posted as pre-release this week.
|
| Tue Mar 04, 2008 10:39 am |
|
|
|
Page 1 of 1
|
[ 5 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 5 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
|
|