D - [VOTE]: Should the 'in/out/inout' parameter modifiers be changed to 'ref'
- imr1984 (3/3) Mar 17 2004 change the score when you reply:
- Jon (4/7) Mar 17 2004 Aye: 1
-
C
(8/19)
Mar 17 2004
On Wed, 17 Mar 2004 17:36:23 +0000 (UTC), Jon
- Ilya Minkov (8/17) Mar 17 2004 Aye: 1
- Andrew Edwards (3/9) Mar 17 2004 Aye: 1
- Matthew (9/24) Mar 17 2004 I have to say nay, because I don't understand the point of the proposal.
- J C Calvarese (10/10) Mar 17 2004 No.
- TuNam (11/37) Mar 17 2004 No man . Vote for No.
- Vathix (7/13) Mar 17 2004 in/out/inout aid the programmer and possibly allow optimizations. But
- Ilya Minkov (4/8) Mar 17 2004 I simply don't get it what for??? We have inout. We have pointer. What
- Vathix (6/18) Mar 19 2004 I thought with out and inout the function is forced to set the value,
- =?ISO-8859-1?Q?Sigbj=F8rn_Lund_Olsen?= (5/18) Mar 19 2004 And therefore ... "inout"!
- Derek Parnell (11/14) Mar 17 2004 My vote: No.
- J Anderson (5/9) Mar 18 2004 Nay
- =?ISO-8859-1?Q?Sigbj=F8rn_Lund_Olsen?= (8/14) Mar 19 2004 No. in/out/inout are completely descriptive as to what they can be used
- Stewart Gordon (8/8) Mar 22 2004 Aye: 1
- Matthew (6/14) Mar 22 2004 As do I, but it's a no-dicer. DBC helps a lot, but it's still doing runt...
- J Anderson (9/14) Mar 22 2004 I'm undecided about the const issue. It gets really hairy when your
- Matthew (9/23) Mar 22 2004 runtime
change the score when you reply: Aye: 1 Nay: 0
Mar 17 2004
In article <c3a1bu$2j8v$1 digitaldaemon.com>, imr1984 says...change the score when you reply: Aye: 1 Nay: 0Aye: 1 Nay: 1 -Jon
Mar 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...-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/change the score when you reply: Aye: 1 Nay: 0Aye: 1 Nay: 1 -Jon
Mar 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 }
Mar 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
Mar 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
Mar 17 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/
Mar 17 2004
No man . Vote for No. syncronized { Aye : 1 Nay : 5 } As I know , in for pass by value , in out for pass by reference , and out is needed for C++ /even Java still need -> D must keep it .( please anyone explain Pass reference by Value I really don't understand about term name Pass-Reference-By-Value in Java ). In article <c3a9ch$7c$2 digitaldaemon.com>, Matthew says...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
Mar 17 2004
imr1984 wrote:change the score when you reply: Aye: 1 Nay: 0in/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
Mar 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
Mar 17 2004
Ilya Minkov wrote:Vathix schrieb:I thought with out and inout the function is forced to set the value, with ref (as a safe alternative to a pointer) you could do it based on runtime values. Sorry, I guess I'm wrong. -- Christopher E. Millerin/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
Mar 19 2004
Vathix wrote:imr1984 wrote:And therefore ... "inout"! *...and the crowd gasped in amazement* Cheers, Sigbjørn Lund Olsenchange the score when you reply: Aye: 1 Nay: 0in/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.
Mar 19 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: 0My 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
Mar 17 2004
imr1984 wrote:change the score when you reply: Aye: 1 Nay: 0Nay reference is a C++ thing. In/out is much better. -- -Anderson: http://badmama.com.au/~anderson/
Mar 18 2004
imr1984 wrote:change the score when you reply: Aye: 1 Nay: 0No. in/out/inout are completely descriptive as to what they can be used for, while 'ref' only tells you what the parameter *is*. Essentially, in/out/inout leads to higher clarity in code. The only good cause for 'ref', as I can see it, is similarity to other languages. That, alone, should never be enough. Cheers, Sigbjørn Lund Olsen
Mar 19 2004
Aye: 1 Nay: 6 However, I do miss the constant reference from C++. Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Mar 22 2004
As do I, but it's a no-dicer. DBC helps a lot, but it's still doing runtime checks for compile violations. But I am prepared to defer to Walter's wisdom that the benefit is not worth the cost, and focus on other things. :) "Stewart Gordon" <smjg_1998 yahoo.com> wrote in message news:c3mdfj$21cp$1 digitaldaemon.com...Aye: 1 Nay: 6 However, I do miss the constant reference from C++. Stewart. -- My e-mail is valid but not my primary mailbox, aside from its being the unfortunate victim of intensive mail-bombing at the moment. Please keep replies on the 'group where everyone may benefit.
Mar 22 2004
Matthew wrote:As do I, but it's a no-dicer. DBC helps a lot, but it's still doing runtime checks for compile violations. But I am prepared to defer to Walter's wisdom that the benefit is not worth the cost, and focus on other things. :)I'm undecided about the const issue. It gets really hairy when your forced to use constant functions (ie in function pointers from some other library) when u shouldn't be and then can't call anything else but constant functions (which of course excludes much of c's stl -> many of which could have constant behaviour). Many people don't follow the convention because of issues such as this one which makes the problem worse. -- -Anderson: http://badmama.com.au/~anderson/
Mar 22 2004
"J Anderson" <REMOVEanderson badmama.com.au> wrote in message news:c3n4ol$5sk$1 digitaldaemon.com...Matthew wrote:runtimeAs do I, but it's a no-dicer. DBC helps a lot, but it's still doingworthchecks for compile violations. But I am prepared to defer to Walter's wisdom that the benefit is notworse. I'll have to take your word (and that of many other commentators) for it. I've never had any problem with const, and I've never worked with anyone that had any problem with it either. I am still unable to understand what all the fuss is about, and I simply think const is great.the cost, and focus on other things. :)I'm undecided about the const issue. It gets really hairy when your forced to use constant functions (ie in function pointers from some other library) when u shouldn't be and then can't call anything else but constant functions (which of course excludes much of c's stl -> many of which could have constant behaviour). Many people don't follow the convention because of issues such as this one which makes the problem
Mar 22 2004