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 / 624
623  |  625
Subject: 
Re: Syntax for reserving variables in NQC?
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Sun, 28 May 2000 23:16:58 GMT
Viewed: 
2024 times
  
Dave Baum schreef:

In article <3931A0AA.7AA6DEB1@3dgamers.com>, Jan-Albert van Ree
<javanree@3dgamers.com> wrote:

It looks perfectly logical to me. Will it be possible to reserve a range
or
do we need to reserve each location separately?

Handling a range should't be too tough - perhaps like this

#pragma  start [count]

where count is assumed to be 1 if not present

// reserve location 1
#pragma 1

// reserve locations 5,6 and 7
#pragma 5 3

This looks a bit confusing, the alternative looks more logical to me.

The alternative would be

#pragma start [end]

where end is assumed to be equal to start

#pragma 1
#pragma 5 7


Now this I can understand :-) Looks awesome.
--
Jan-Albert "Anvil" van Ree   | http://www.nl.3dgamers.com
3D Sims Archive maintainer   | http://www.3dgamers.com
Thrustmaster Resource Center | http://www.3dgamers.com/tmresourcecenter/



Message is in Reply To:
  Re: Syntax for reserving variables in NQC?
 
(...) Handling a range should't be too tough - perhaps like this #pragma start [count] where count is assumed to be 1 if not present // reserve location 1 #pragma 1 // reserve locations 5,6 and 7 #pragma 5 3 --- The alternative would be #pragma (...) (25 years ago, 28-May-00, to lugnet.robotics.rcx.nqc)

8 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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