Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

#define equivalent

#63

I've heard numerous requests over the years for the equivalent of a #define in MW.

Such a construct would:

  • not clutter up the variables window, etc.
  • function in places where variables cannot (e.g. the range in a replicator; as an aside we could also allow variables function in this way with their default values, those this opens up some potential confusion about what replicators are and when they are evaluated).
  • possibly extend beyond just values (e.g. function names, operators, etc.)

Some thought / debate should probably go into what scope/scale such a thing would take (e.g. operates just in "expression" contexts? just scalar values? a full macro preprocessor? etc. etc.).

Reported by David Cox · October 18th, 2010 @ 03:22 PM

State: hold
Milestone: none
Assigned to: nobody

Activity

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.