ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Preminary submission: format3
by Darin Adler other posts by this author
Jan 31 2002 12:01AM messages near this date
Re: the first version of abstract path manipulation c lass (interface) | Re: the first version of abstract path manipulation c lass (interface)
On 1/30/02 3:39 PM, Karl Nelson <kenelson@[...]..>  wrote:

>  Feedback welcome!

I think the normal-function-style API is great. (Although the function-call
operator variant seems gratuitous.)

I'd prefer that you use the extensions that are required for a Boost
submission (.hpp, .cpp). Also, you could use the Boost preprocessor instead
of .m4 to make the header, but I guess that doesn't matter much either way.

For ease of reading the code, I think it would be cool if the generated
header was not the main header itself, but rather something the main header
includes. This makes it more likely that the main header can have suitable
comments in it.

I was unable to compile this until I changed all the isdigit to
std::isdigit .

I found that passing an extra parameter to format() to led to writing off
the end of the chunks_ array in push(). Some range checking needed. I think
that it would be nicer if too-few arguments resulted in some kind of
debugging help rather than silently substituting an empty string from all
missing arguments.

Looks like a reasonable start; not as far along as the format we just did
formal review on, but with fewer quirks.

-- Darin

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved