On Thu, Nov 13, 2008 at 7:08 AM, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > On Wed, 2008-11-12 at 21:17 -0500, Jay Savage wrote: >> the only thing you are using the pragma to control is >> whether the substitution happens at compile time or run time. In most >> cases, it doesn't make a hill of beans. > > Yes, it does matter. If it happens at compile time, any error is > reported every time you run it. If it happens at run time, any error is > reported only when that piece of code is executed. If it is in a branch > that is seldom executed, because the data seldom directs the program > there, you may not know of the error until months later. Try to make > all the errors show up at compile time. > >
I suppose I should have said "in most cases, it doesn't make a hill of beans to performance," but I thought that was clear from the context. You make a good point, but it rests on some assumptions that may or may not apply in OP's case. In particular, I don't see what error a simple constant string declaration is likely to catch, especially since the code in question does not, in fact, present any conditional logic. Still, TIMTOWTDI, and only OP knows at what point the benefits of constants outweigh the benefits of interpolation in his situation. Best, --j -------------------------------------------------- This email and attachment(s): [ ] blogable; [ x ] ask first; [ ] private and confidential daggerquill [at] gmail [dot] com http://www.tuaw.com http://www.downloadsquad.com http://www.engatiki.org values of β will give rise to dom!