#63 ✓hold
David Cox

#define equivalent

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

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.).

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The core framework and supporting libraries for the MWorks Suite

People watching this ticket

Referenced by

Pages