Re: Question about passing by value

From: Andrey Tarasevich (andreytarasevich_at_hotmail.com)
Date: 09/17/04


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


Relevant Pages

  • Re: Betovs notation
    ... That might apply to RosAsm... ... >:)) You just give the reason why an Assembler should NEVER ... That's not Nasm syntax, maybe it's LuxAsm syntax... ... > the readability, ... ...
    (alt.lang.asm)
  • Re: Need help with a Work around
    ... The reason for the _access is because everythign I have been reading it ... overwrite data in a file where the file may be saveable. ... I start reading the material and actually see code in use and study it to ... right when I tried doing it myself but had the wrong syntax. ...
    (comp.lang.cpp)
  • RE: Error 3065- cannot execute select query
    ... the reason it wasn't getting an error is because I commented out the line ... > The syntax as posted is for a numeric field: ... >> Dim rs As DAO.Recordset ... >> "(tblPanelJob INNER JOIN tblPanelJobDetail ON ...
    (microsoft.public.access.formscoding)
  • Re: How to rearrange text fields in sed?
    ... for the same reason: legibility. ... There may be a reason for using more idiomatic syntax in an ... because it may execute faster. ... Shell Scripting Recipes: | My code in this post, if any, ...
    (comp.unix.questions)
  • Re: About those parenthesis....
    ... The above is no longer strictly prefix notation. ... >> I have programmed with Lisp-like semantics using the fsyntax. ... I don't see any reason why that utterance has to be ...
    (comp.lang.lisp)