Re: Question about passing by value
From: Andrey Tarasevich (andreytarasevich_at_hotmail.com)
Date: 09/17/04
- Next message: Greg Comeau: "Re: Question about passing by value"
- Previous message: Victor Bazarov: "Re: collect2: ld returned 1 exit status"
- In reply to: Jack Klein: "Re: Question about passing by value"
- Next in thread: Greg Comeau: "Re: Question about passing by value"
- Reply: Greg Comeau: "Re: Question about passing by value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 17 Sep 2004 11:43:57 -0700
Jack Klein wrote:
> ...
> If either C or C++ was ever changed to make bare arrays copyable, or
> passable to and returnable from functions, some new syntax would have
> to be developed, it couldn't be just by using the unadorned name of
> the array.
And why exactly is the reason for that, in your opinion? Backward
compatibility considerations that you mention later? Aside from that, I
don't see any other reason for any syntax changes.
> If the automatic conversion from array name to pointer to first
> element in function calls and return statements was ever changed, it
> would break 99% of all the C and C++ programs that have ever existed.
That's definitely true.
-- Best regards, Andrey Tarasevich
- Next message: Greg Comeau: "Re: Question about passing by value"
- Previous message: Victor Bazarov: "Re: collect2: ld returned 1 exit status"
- In reply to: Jack Klein: "Re: Question about passing by value"
- Next in thread: Greg Comeau: "Re: Question about passing by value"
- Reply: Greg Comeau: "Re: Question about passing by value"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|