Subject:
|
Re: NQC wishlist
|
Newsgroups:
|
lugnet.robotics.rcx.nqc
|
Date:
|
Thu, 6 Jan 2000 15:44:48 GMT
|
Viewed:
|
1968 times
|
| |
| |
In lugnet.robotics.rcx.nqc, Dave Baum writes:
> 1) symbol ## symbol -> new symbol (e.g. foo ## bar)
> 2) symbol ## number -> new symbol (e.g. foo ## 12)
> 3) number ## number -> new number (e.g. 12 ## 34)
> 4) operator ## operator -> new operator (e.g. < ## = or + ## +)
> 5) symbol ## symbol -> keyword (e.g. br ## eak)
I think 1 and 2 are the ones that would be really needed. 2 would be useful in
writing macros to emulate arrays or "small" variables. But maybe there will be
support for that in the compiler...
cheers
/Vlad
|
|
Message is in Reply To:
| | Re: NQC wishlist
|
| (...) I took a good look at the preprocessor code, and it shouldn't be too hard to implement ## aside from the problem of recovering original token text. Adding support for remembering the original token text is easy to do if you're willing to be a (...) (25 years ago, 6-Jan-00, to lugnet.robotics.rcx.nqc)
|
17 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|