| | Re: NBC/NXC beta news John Hansen
|
| | (...) The problem with code of this sort is that the opcodes for manipulating values do not readily allow for this type of operation. To set the variable val to the value of the bxxx field of the structure type stored in your array of structs I (...) (18 years ago, 25-Apr-07, to lugnet.robotics.nxt)
|
| | |
| | | | Re: NBC/NXC beta news Ross Crawford
|
| | | | (...) Well that technique does compile, but produces interesting results: --- #include "NXCDefs.h" struct st { string s1; int i1; } st a1[]; st v1,v2; task main() { v1.s1 = "test"; v1.i1 = 9; NumOut(0,0,v1.i1); TextOut(40,0,v1.s1); (...) (18 years ago, 25-Apr-07, to lugnet.robotics.nxt)
|
| | | | |
| | | | | | Re: NBC/NXC beta news John Hansen
|
| | | | | (...) Sorry for not getting back with you sooner about this bug, Rosco. Life comes at you fast, as they say. :-) I investigated this problem today and it looks like I've got it fixed. There were several bugs going on in NBC which were causing the (...) (18 years ago, 28-Apr-07, to lugnet.robotics.nxt)
|
| | | | | |
| | | | Re: NBC/NXC beta news Doug Eaton
|
| | | | (...) I keep forgetting the not-quite part of your language is an attempt to map operations directly onto the underlying VM. I was hoping to avoid rewriting code but now realize that making all elements of this structure top-level elements will (...) (18 years ago, 29-Apr-07, to lugnet.robotics.nxt)
|
| | | | |