To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 669
  Re: NBC/NXC beta news
 
(...) Structure support is a feature I have been waiting for. I have some large programs that should port easily once structs work. Is an array of struct expected to work? When I try to access a field within an element I get an error: # Error: (...) (18 years ago, 17-Apr-07, to lugnet.robotics.nxt)
 
  Re: NBC/NXC beta news
 
(...) 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
 
(...) 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
 
(...) 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
 
(...) 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)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR