471,092 Members | 1,051 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

enum lookup tables

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
3 3146
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

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

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.

Similar topics

1 post views Thread by boonkit | last post: by
2 posts views Thread by CoreyWhite | last post: by
1 post views Thread by herbert | last post: by
3 posts views Thread by my-wings | last post: by
2 posts views Thread by awebguynow | last post: by
3 posts views Thread by John Wright | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.