Topic: ANSI Public Comments


Author: jim.fleming@bytes.com (Jim Fleming)
Date: 1995/04/12
Raw View
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

I assume that Ian Joyner's famous "C++ Critique" will be submitted as
part of the public comments to the ANSI C++ Standards work...

Here are some additional comments...for those that are collecting
them...

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

In article <D6urBF.ECG@syacus.acus.oz.au>, ian@syacus.acus.oz.au says...
>
>Bruce@hoult.actrix.gen.nz (Bruce Hoult) writes:
>
>>> There's actually no need to change the syntax, only
>>> enhance the semantics:
>>>
>>>      Foo *p;
>>>      Blarg **q;
>>>
>>>      p->thing = 42;  /* means (*p).thing = 42 */
>>>      q->stuff = 17;  /* means (**q).stuff = 17 */
>>>
>>> and even
>>>
>>>      p.thing = 42;   /* means (*p).thing = 42 */
>>>
>>> The compiler can always figure out what you mean!
>
>>In which case you might as well just make it...
>
>>   p.thing = 42;  and
>>       q.stuff = 17;
>
>>That's where Wirth's gone, after all.
>
>Exactly the point I make in the C++ Critique. There is no reason to have
>separate '->' and '.' operators, because the compiler can easily figure
>it out. However, you need to consider why the '->' and '.' lead to programs
>being unmaintanable. What happens if you change Foo *p to just Foo p?
>Well if you only accessed members by a single '.' operator, no problems,
>just recompile. But if you distinguish '->' and '.', then you must
>go and change all the '->' accesses to this object to '.' manually.
>Real tedious bookkeeping stuff, when I should have a compiler do all
>this for me. That's what compilers are for...
>--
>Ian Joyner           |"for when lenity and cruelty play   |All opinions are
>Unisys (ACUS)        | for a kingdom, the gentler gamester|personal and are
not
>ian@syacus.acus.oz.au| is the soonest winner" W.S. Henry V|Unisys official
comment

--
Jim Fleming            /|\      Unir Corporation       Unir Technology, Inc.
%Techno Cat I        /  | \     One Naperville Plaza   184 Shuman Blvd. #100
Penn's Landing      /   |  \    Naperville, IL 60563   Naperville, IL 60563
East End, Tortola  |____|___\   1-708-505-5801         1-800-222-UNIR(8647)
British Virgin Islands__|______ 1-708-305-3277 (FAX)   1-708-305-0600
                 \__/-------\__/       e-mail: jim.fleming@bytes.com
Smooth Sailing on Cruising C+@amarans  ftp: 199.3.34.12 <-----stargate----+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\____to the end of the OuterNet_|