Topic: Modules for C++?


Author: "Lally" <lally.singh@gmail.com>
Date: Wed, 28 Jun 2006 11:57:55 CST
Raw View
"Peter C. Chapin" wrote:
> "shodan" <pecholt@centrum.cz> wrote in news:1150826573.819195.39710
> @p79g2000cwp.googlegroups.com:
>
> > Look at this:
> > http://code.google.com/soc/boost/appinfo.html?csaid=49B62B977DB56161
> >
> > It seems someone is working on it already
>
> This looks like a preprocessor to convert modules into "normal" C++. I'm
> not sure how that will work, exactly, but it seems to negate one important
> (to me) advantage of modules... namely protection of names from violence
> due to the preprocessor.
>
> Peter

That's exactly how it'll work.

Getting rid of #define-related damage requires that the headers stop
using them.  Modularizing the library is another issue (maybe a
Perl-fixable issue, but out of scope for my Summer of Code project).

-ls

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: "kanze" <kanze@gabi-soft.fr>
Date: Mon, 19 Jun 2006 09:35:31 CST
Raw View
"Peter C. Chapin" wrote:

> Hello! I understand that there is an active proposal before
> the C++ standards committee to add support for first class
> modules to C++ (document N1964, dated 2006-02-27, "Modules in
> C++"). I'm wondering if anyone can comment on the status of
> this proposal. Is this something that is likely to make it
> into the standard or is it still highly speculative?

Sort of:-).

The proposal, at least as I read it, is very concrete.  At the
April meeting, the committee voted to encourage the author to
continue to develop it; there seems to be more or less a
consensus that something along these lines would be nice.

On the other hand, there doesn't seem to be anyone with enough
time to implement a proof of concept for it.  And without at
least one working implementation before the finalization of the
standard, I can't imagine it being accepted.

--
James Kanze                                           GABI Software
Conseils en informatique orient   e objet/
                   Beratung in objektorientierter Datenverarbeitung
9 place S   mard, 78210 St.-Cyr-l'   cole, France, +33 (0)1 30 23 00 34


---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: pchapin@sover.net ("Peter C. Chapin")
Date: Tue, 20 Jun 2006 03:44:23 GMT
Raw View
"kanze" <kanze@gabi-soft.fr> wrote in news:1150708440.004686.63000
@r2g2000cwb.googlegroups.com:

> The proposal, at least as I read it, is very concrete.  At the
> April meeting, the committee voted to encourage the author to
> continue to develop it; there seems to be more or less a
> consensus that something along these lines would be nice.
>
> On the other hand, there doesn't seem to be anyone with enough
> time to implement a proof of concept for it.  And without at
> least one working implementation before the finalization of the
> standard, I can't imagine it being accepted.

Thanks for your comments.

Peter

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: "shodan" <pecholt@centrum.cz>
Date: Tue, 20 Jun 2006 15:06:29 CST
Raw View
> "kanze" <kanze@gabi-soft.fr> wrote in news:1150708440.004686.63000
> @r2g2000cwb.googlegroups.com:
>
> > The proposal, at least as I read it, is very concrete.  At the
> > April meeting, the committee voted to encourage the author to
> > continue to develop it; there seems to be more or less a
> > consensus that something along these lines would be nice.
> >
> > On the other hand, there doesn't seem to be anyone with enough
> > time to implement a proof of concept for it.  And without at
> > least one working implementation before the finalization of the
> > standard, I can't imagine it being accepted.

Look at this:
http://code.google.com/soc/boost/appinfo.html?csaid=49B62B977DB56161

It seems someone is working on it already

Tomas

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: pchapin@sover.net ("Peter C. Chapin")
Date: Wed, 21 Jun 2006 15:10:00 GMT
Raw View
"shodan" <pecholt@centrum.cz> wrote in news:1150826573.819195.39710
@p79g2000cwp.googlegroups.com:

> Look at this:
> http://code.google.com/soc/boost/appinfo.html?csaid=49B62B977DB56161
>
> It seems someone is working on it already

This looks like a preprocessor to convert modules into "normal" C++. I'm
not sure how that will work, exactly, but it seems to negate one important
(to me) advantage of modules... namely protection of names from violence
due to the preprocessor.

Peter

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]





Author: pchapin@sover.net ("Peter C. Chapin")
Date: Mon, 19 Jun 2006 03:00:57 GMT
Raw View
Hello! I understand that there is an active proposal before the C++
standards committee to add support for first class modules to C++ (document
N1964, dated 2006-02-27, "Modules in C++"). I'm wondering if anyone can
comment on the status of this proposal. Is this something that is likely to
make it into the standard or is it still highly speculative?

I'm also interested in the slightly related proposal to add scope control
to the preprocessor (document N1614, dated 2004-04-12, "#scope: A simple
scoping mechanism for the C/C++ preprocessor"). I understand that the
module proposal subsumes the #scope proposal, but the module proposal is
much more radical. Also there is room for both proposals in the language
(for example if C follows the #scope stuff).

Thanks for any insights you can offer.

Peter

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]