[TUHS] // comment in C++
rochkind at basepath.com
Thu Feb 9 12:28:16 AEST 2017
Those were JCL COMMANDS??? Damn! I thought they were comments. No wonder
nothing ever worked.
On Wed, Feb 8, 2017 at 5:03 PM, Paul McJones <paul at mcjones.org> wrote:
> I'm fairly certain it was originally in BCPL.
> You could just drop a note to Bjarne Stroustrup and ask. :-)
> On page 44 of _The Design and Evolution of C++_ (Addison-Wesley, 1994),
> Stroustrup says:
> “However, only C, Simula, Algol68, an in one case BCPL left noticeable
> traces in C++ as released in 1985. Simula gave classes, Algol68 operating
> overloading, references, and the ability to declare variables anywhere in a
> block, and BCPL gave // comments.”
> He says a bit more about // comments on page 93, including an example of
> how they introduced an incompatibility with C.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the TUHS