Re: LINQ vs Delphi
- From: ozbear@xxxxxxxxxxx (ozbear)
- Date: Thu, 15 Sep 2005 00:58:04 GMT
On Wed, 14 Sep 2005 23:00:48 +0200, "Mike B" <mbrindley@xxxxxxxxx>
wrote:
>
>"Martin James" <mjames_falcon@xxxxxxxxxxxxxx> wrote in message
>>
>> All calls by address should have some
>> indication at the caller, @, &, something anyway.
>>
>What do you think the "var" keyword stands for?
>
>This essentially means "address", which can be either typed or untyped.
>
>I don't understand what your concern is.
>
>Mike
>
>
Obviously. You don't put /var/ in the actual argument list, it
goes in the formal parameter list. His concern, and mine too for
that matter, is that it makes the code less clear when reading the
*calling* code, that a parameter passed might be chaged by the
called routine.
In C# this is obvious since the /ref/ keyword is present -in the
call-. In C this is obvious since & is present -in the call-.
In Delphi it is not obvious without looking at the formal parameter
list.
Oz
--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
.
- Follow-Ups:
- Re: LINQ vs Delphi
- From: Martin James
- Re: LINQ vs Delphi
- References:
- LINQ vs Delphi
- From: Andrew
- Re: LINQ vs Delphi
- From: Marc Rohloff [TeamB]
- Re: LINQ vs Delphi
- From: JED
- Re: LINQ vs Delphi
- From: Mike B
- LINQ vs Delphi
- Prev by Date: Re: Allen Bauer: Delphi 2005 Fix Roll-up... and then some
- Next by Date: Re: LINQ vs Delphi
- Previous by thread: Re: LINQ vs Delphi
- Next by thread: Re: LINQ vs Delphi
- Index(es):