From: Parental Advisory (meshkin@sol.cs.wmich.edu)
Date: 07/07/93


From: meshkin@sol.cs.wmich.edu (Parental Advisory)
Subject: Re: ALPHA-pl11 available on nic: C++ support
Date: Wed, 7 Jul 1993 05:23:08 GMT

On Wed, 7 Jul 93 00:33:06 GMT, Yonik Christopher Seeley (yseeley@leland.Stanford.EDU) seemed to say:

> I think that the move to C++ as a positive one, and hopefully more
> C++ code can be incorporated into the kernel as time goes on. If you
> do it right, there need not be any performance loss, and you can
> gain greater modularity + readability + (other ads of C++).

I agree. Although my jaw just about hit the floor when I saw that the
kernal was now being moved to C++!

While I will be the first to admit that I do not (yet) know how to properly
take advantage of C++, I learned it very quickly to the point that I can
read code and understand it... er... at least with no more effort than
understanding ANY C code. ;^)

If the current incarnation of g++ will generate code that is only a bit slower
or more bulky than gcc, go for it!

> As for your desire to learn C++, it is being used more all the time
> in industry. It would be good for you to learn more about it ;-)

Besides, it is FUN! Pardon me if I get the syntax wrong (it's been a while).
Doesen't
  blah() { String a= "foo", b= "bar"; puts(a+b+"\n"); }
look more entertaining than
  blah()
  {
    char *a= "foo", *b= "bar", *c;

    if(!(c= (char *)calloc(sizeof(a)+ sizeof(b)+ 2))) oops();
    strcat(c, a); strcat(c, b); strcat(c, "\n");
    puts(c);
    free(c);
  }

I hope I didn't mangle that TOO badly, but I think it's neat! String
concatination using operators is the one thing I really missed from good
old (evil word) BASIC! <grin>

> - Yonik Seeley
> yseeley@cs.stanford.edu

                        -Chris.

-- 
 ____   ____  ____    To seek out new structs, and polymorphism...
//  \\ //  \\ ||//    To boldy go where no to has gone before...
\\__// \\__// ||
                      Chris Meshkin (meshkin@sol.cs.wmich.edu)      > WMU <