By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,261 Members | 1,325 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,261 IT Pros & Developers. It's quick & easy.

enum lookup tables

P: n/a
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable. It uses (gasp) macros.

http://www.geocities.com/wkaras/itemlist.html

Jul 8 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
wkaras wrote:
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable.
http://www.geocities.com/wkaras/itemlist.html
How does it compare to this?

http://www.codeproject.com/macro/metamacros.asp
It uses (gasp) macros.
Real programmers use macros.

Specifically, real programmers use them for these three things, which
nothing else can do:

- token pasting
- stringerization
- conditional compilation

I apologize for all the Scott Meyers wannabes whose knees jerk when they
see them...

--
Phlip
Jul 8 '06 #2

P: n/a

Phlip wrote:
wkaras wrote:
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable.
http://www.geocities.com/wkaras/itemlist.html

How does it compare to this?

http://www.codeproject.com/macro/metamacros.asp
....

I would say that I'm applying the technique that you're refering to.

Jul 9 '06 #3

P: n/a

Phlip wrote:
wkaras wrote:
A C++ facility to make the use of lookup tables indexed by enum values
more maintainable.
http://www.geocities.com/wkaras/itemlist.html
Oops

http://www.geocities.com/wkaras/itemlist/itemlist.html
>
How does it compare to this?

http://www.codeproject.com/macro/metamacros.asp
It uses (gasp) macros.

Real programmers use macros.

Specifically, real programmers use them for these three things, which
nothing else can do:

- token pasting
- stringerization
- conditional compilation

I apologize for all the Scott Meyers wannabes whose knees jerk when they
see them...

--
Phlip
Jul 11 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.