To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 627
    Re: Syntax for reserving variables in NQC? —Dean Husby
   (...) I would suggest leaving it simple. For example: #pragma 1 Would reserve var. one. #pragma 1 5 9 10 31 Would reserve var.'s 1, 5, 9, 10 & 31 It's the easiest to see at a glance and would be easy to adjust as you changed your code. Dean -- (...) (24 years ago, 29-May-00, to lugnet.robotics.rcx.nqc)
   
        Re: Syntax for reserving variables in NQC? —Steven J. Morris
   (...) How about: #pragma reserve 1 3 5-8 9 with range explicitly specified by "-". Then those that want to specify a range can do so and those who want to specify a list can do so. Of course this assumes that you don't allow arithmetic in the pragma (...) (24 years ago, 2-Jun-00, to lugnet.robotics.rcx.nqc)
   
        Re: Syntax for reserving variables in NQC? —Dave Baum
   (...) I went with simple... #pragma reserve start [end] where [end] is assumed to be start if not specified. If you want to reserve multiple vars (or multiple ranges) you need to use multiple #pragmas. (...) Yes, its all a bit academic. The only (...) (24 years ago, 3-Jun-00, to lugnet.robotics.rcx.nqc)
 

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