[build2] bdep new allows projects names that are invalid c++ namespace names

Klaim - Joël Lamotte mjklaim at gmail.com
Wed Aug 15 20:22:52 UTC 2018


On Wed, 15 Aug 2018 at 19:21, Boris Kolpackov <boris at codesynthesis.com> wrote:
>
> Klaim - Joėl Lamotte <mjklaim at gmail.com> writes:
>
> > Suggestion A:
> > 1. allow library name as now (I think it would not be pleasant for users
> >     if libraries with dashes in names were not allowed);
> > 2. when generating the namespace, change unavailable characters
> >     to `_` (underscore) trimmed;
> > 3. provide a way to specify the namespace in commands generating code,
> > in particular `bdep new` (I don't see such an option).
>
> Fixed as 1-2 but not 3 (it is fairly easy to customize manually so
> maybe later). Thanks for the report.
>

Cool.
Is this fix only for C++ or for any language?

Joël



More information about the users mailing list