Liste des Groupes | Revenir à cl c |
bart <bc@freeuk.com> writes:
On 10/07/2024 14:32, Ben Bacarisse wrote:
The way it works in my language is very simple (this is what I do after all):I still consider arrays in C to be 'passed' by aI don't really care how you consider it, but I do care about how you
mechanism which is near-indistinguishable from actual
pass-by-reference.
misrepresent the facts in public.
In another post you said that your language has pass by reference, and
we also know you have implemented C. Either you are just very confused
and your language simply has call by value (after all, you think C has
pass by reference), or you know that pass by reference in your language
needs something from the implementation that was not needed when you
implemented C. I can't decide if you are confused or just lying.
This is my point. Clearly true pass-by-reference for arrays wouldn't add anything in C; it already works alike that! But due to complicated set of rules and quirks, which quite different from the type model illustrated above.If somebody had proposed adding pass-by-reference for arrays, you'd say CI see you are running out of statements to argue against so you have
doesn't need it, because whatever benefits it might have you, C already
has!
started to make up your own. I am sure you have thoroughly refuted this
made up person in your head.
Anyone proposing adding pass-by-reference for arrays would be told (by
me at last) to start by allowing arrays to be passed by value first.
Why anyone would propose adding pass by reference for a type that can't
be currently be passed at all is a mystery that only you (as the
inventor of this person) can know.
Les messages affichés proviennent d'usenet.