| Thread overview | |||||
|---|---|---|---|---|---|
|
October 16, 2015 Error message clarity w.r.t. ref | ||||
|---|---|---|---|---|
| ||||
ref int foo(ref int x) { return x ; }
void main ()
{
foo(3) ;
// Error: function rvalue_argument.foo (ref int x) is not callable using
argument types (int)
// Comment: "argument ref int x of function rvalue_argument.foo cannot bind
to an rvalue" would be clearer IMO
int i ;
ref ir = i ;
// Error: variable ref_type.main.ir only parameters or foreach declarations
can be ref
// Comment: after the variable name add a colon, and add ", return values"
after "parameters"
}
NOTE: Not creating pull request or bugzilla since procedure much more tortuous than posting to NG. (Sorry but I'm still catching up on lots of pending projects right now so...)
--
Shriramana Sharma, Penguin #395953
| ||||
October 16, 2015 Re: Error message clarity w.r.t. ref | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Shriramana Sharma | On Friday, 16 October 2015 at 10:12:50 UTC, Shriramana Sharma wrote: > NOTE: Not creating pull request or bugzilla since procedure much more tortuous than posting to NG. (Sorry but I'm still catching up on lots of pending projects right now so...) It takes barely more time to add a bug to bugzilla than it does to post in the newsgroup about it, and bugs are not tracked in the newsgroup. If you want something fixed, please add it to bugzilla: https://issues.dlang.org - Jonathan M Davis | |||
October 17, 2015 Re: Error message clarity w.r.t. ref | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | Jonathan M Davis wrote: > It takes barely more time to add a bug to bugzilla than it does to post in the newsgroup about it To my pleasant surprise, I found you were right! :-) https://issues.dlang.org/show_bug.cgi?id=15216 -- Shriramana Sharma, Penguin #395953 | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply