468,456 Members | 1,642 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,456 developers. It's quick & easy.

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 2959
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
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.