View Single Post
  #3   Spotlight this post!  
Unread 01-02-2002, 11:50
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: How about a slot directive?

Quote:
Originally posted by Joe Johnson
It might be nice to have a slot directive that allows you to start the code for a different programming slot in the same file.

Typical directives:
To start a new slot (slot number assigned by the preprossor -- we refernence them by name):
{$SlotStart slotname}

To end a slot (perhaps not required, either the file ends or a new slot begins:
{$SlotEnd}

To run another slot (preprocessor resolves the slotname to the required number)
{Run slotname}
I think I like it. Let me stew on it a bit.



Quote:
Along with this I would say it would be nice to have "global" include directives and "local" include directives.

This would let us have some code (say the declarations of variables, constants, etc.) included in all programming slots and then but then we could include special code in specific programming slots.
If I'm understanding what you need, then you can already do this with multiple include files. You're not restricted to a single $Include directive per file. Simply $Include the global data file in all your project files, and $Include the special code files only where you need them.


Quote:
I know I am asking a lot, but you asked for feedback.

Joe J.
Yes, I did, and I appreciate it all.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 01-02-2002 at 14:32.