Jump to page: 1 2
Thread overview
[VOTE]: Should the 'in/out/inout' parameter modifiers be changed to 'ref'
Mar 17, 2004
imr1984
Mar 17, 2004
Jon
Mar 17, 2004
C
Mar 17, 2004
Ilya Minkov
Mar 17, 2004
Andrew Edwards
Mar 17, 2004
Matthew
Mar 18, 2004
J C Calvarese
Mar 18, 2004
TuNam
Mar 17, 2004
Vathix
Mar 17, 2004
Ilya Minkov
Mar 19, 2004
Vathix
Mar 18, 2004
Derek Parnell
Mar 18, 2004
J Anderson
Mar 22, 2004
Stewart Gordon
Mar 22, 2004
Matthew
Mar 22, 2004
J Anderson
Mar 22, 2004
Matthew
March 17, 2004
change the score when you reply:

Aye: 1
Nay: 0


March 17, 2004
In article <c3a1bu$2j8v$1@digitaldaemon.com>, imr1984 says...
>
>change the score when you reply:
>
>Aye: 1
>Nay: 0
>
>

Aye: 1
Nay: 1

-Jon
March 17, 2004
On Wed, 17 Mar 2004 17:36:23 +0000 (UTC), Jon <Jon_member@pathlink.com> wrote:

synchronized {

 Aye: 1
 Nay: 2

}



> In article <c3a1bu$2j8v$1@digitaldaemon.com>, imr1984 says...
>>
>> change the score when you reply:
>>
>> Aye: 1
>> Nay: 0
>>
>>
>
> Aye: 1
> Nay: 1
>
> -Jon



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
March 17, 2004
Aye: 1
Nay: 668

(i'm playing foreign games by my own rules and vote multiple times)

If they are changed, we will severely compromise the performance scalability of D to different systems! They will prove *very* useful as they are defined in a few years.

-eye


C schrieb:
> On Wed, 17 Mar 2004 17:36:23 +0000 (UTC), Jon <Jon_member@pathlink.com> wrote:
> 
> synchronized {
> 
>  Aye: 1
>  Nay: 2
> 
> }
March 17, 2004
imr1984 wrote:

> change the score when you reply:
> 
> Aye: 1
> Nay: 0
> 
> 

in/out/inout aid the programmer and possibly allow optimizations. But sometimes you only need an input or output reference depending on runtime values, that's there ref would come in handy. I think it would be nice to add it.


-- 
Christopher E. Miller
March 17, 2004
On Wed, 17 Mar 2004 11:58:03 -0800, C <dont@respond.com> wrote:

> On Wed, 17 Mar 2004 17:36:23 +0000 (UTC), Jon <Jon_member@pathlink.com> wrote:
>
> synchronized {
>
>   Aye: 1
>   Nay: 2
>
> }
>
>
>

Aye: 1
Nay: 3
March 17, 2004
I have to say nay, because I don't understand the point of the proposal. Please explain.

synchronized
{
 Aye: 1
 Nay: 4
}

"Andrew Edwards" <remove_ridimz@remove_yahoo.com> wrote in message news:opr40tpklzs6zaqn@news.digitalmars.com...
> On Wed, 17 Mar 2004 11:58:03 -0800, C <dont@respond.com> wrote:
>
> > On Wed, 17 Mar 2004 17:36:23 +0000 (UTC), Jon <Jon_member@pathlink.com>
> > wrote:
> >
> > synchronized {
> >
> >   Aye: 1
> >   Nay: 2
> >
> > }
> >
> >
> >
>
> Aye: 1
> Nay: 3


March 17, 2004
Vathix schrieb:

> in/out/inout aid the programmer and possibly allow optimizations. But sometimes you only need an input or output reference depending on runtime values, that's there ref would come in handy. I think it would be nice to add it.

I simply don't get it what for??? We have inout. We have pointer. What else would be ref but an alias to inout????

-eye
March 18, 2004
No.

synchronized
{
  Aye: 1
  Nay: 5
}

I don't know what it is, but I doubt I'd like it.

-- 
Justin
http://jcc_7.tripod.com/d/
March 18, 2004
On Wed, 17 Mar 2004 17:19:58 +0000 (UTC) (18/Mar/04 04:19:58 AM)
, imr1984 <imr1984_member@pathlink.com> wrote:

> change the score when you reply:
>
> Aye: 1
> Nay: 0
>
>

My vote: No.

Reasons:
(a) 'in', 'out', and 'inout' all mean different things and a single 'ref' keyword cannot replace all their meanings.
(b) By using explicit keywords, the intentions of the coder are more obvious to the reader.
(c) Using keywords for each case makes the code more 'grepable'.

-- 
Derek
« First   ‹ Prev
1 2