[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2019-07-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8845 Walter Bright changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2018-01-25 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8845 Carsten Blüggel changed: What|Removed |Added CC||chi...@posteo.net --

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2016-12-03 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8845 --- Comment #21 from Nick Treleaven --- I came up with a lvalueOf!rvalue template which hopefully is memory-safe. Not tested with Walter's DIP1000 scope branch (yet). enum typeof(v[0])[v.length] staticArray(v...) = [v]; ref const(T)

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2016-05-24 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=8845 Nick Treleaven changed: What|Removed |Added CC|

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #3 from Manu turkey...@gmail.com 2013-11-27 02:25:05 PST --- (In reply to comment #2) Is there a better version of this with all the auto-ref stuff? What do you mean? The solution that we discussed extensively at dconf never made

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #4 from yebblies yebbl...@gmail.com 2013-11-27 21:33:35 EST --- (In reply to comment #3) (In reply to comment #2) Is there a better version of this with all the auto-ref stuff? What do you mean? The solution that we

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #5 from Manu turkey...@gmail.com 2013-11-27 02:39:31 PST --- (In reply to comment #4) (In reply to comment #3) (In reply to comment #2) Is there a better version of this with all the auto-ref stuff? What do you mean?

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #6 from yebblies yebbl...@gmail.com 2013-11-27 22:14:24 EST --- (In reply to comment #5) I don't think there is. That would have been far too sensible :) Well, if you can remember where the discussion and agreement was, it might

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #8 from Manu turkey...@gmail.com 2013-11-27 04:02:46 PST --- (In reply to comment #6) (In reply to comment #5) I don't think there is. That would have been far too sensible :) Well, if you can remember where the discussion

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #9 from bearophile_h...@eml.cc 2013-11-27 04:14:34 PST --- (In reply to comment #7) AFAIK Walter agreed for final-by-default:

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #10 from Andrej Mitrovic andrej.mitrov...@gmail.com 2013-11-27 04:15:56 PST --- (In reply to comment #9) (In reply to comment #7) AFAIK Walter agreed for final-by-default:

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #11 from Manu turkey...@gmail.com 2013-11-27 04:26:49 PST --- (In reply to comment #9) (In reply to comment #7) AFAIK Walter agreed for final-by-default:

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #12 from yebblies yebbl...@gmail.com 2013-11-27 23:47:39 EST --- (In reply to comment #8) (In reply to comment #6) (In reply to comment #5) I don't think there is. That would have been far too sensible :) Well, if you

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #13 from Manu turkey...@gmail.com 2013-11-27 04:53:07 PST --- (In reply to comment #12) (In reply to comment #8) (In reply to comment #6) (In reply to comment #5) I don't think there is. That would have been far too

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #14 from yebblies yebbl...@gmail.com 2013-11-27 23:56:31 EST --- (In reply to comment #13) I'm just creating a DIP for it... should I bother? If you want to. I don't think it is necessary though. -- Configure issuemail:

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #15 from Manu turkey...@gmail.com 2013-11-27 05:04:31 PST --- (In reply to comment #14) (In reply to comment #13) I'm just creating a DIP for it... should I bother? If you want to. I don't think it is necessary though.

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 Maxim Fomin ma...@maxim-fomin.ru changed: What|Removed |Added CC||ma...@maxim-fomin.ru

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #17 from Manu turkey...@gmail.com 2013-11-27 07:18:38 PST --- (In reply to comment #16) Addressing Manu problem in first post: you cannot do it directly, but can workaround by void foo(T)(ref const T i) {} ref

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 --- Comment #18 from Maxim Fomin ma...@maxim-fomin.ru 2013-11-27 07:45:10 PST --- (In reply to comment #17) One allocates, the other is just a subversion of the type system. Actually each of them allocates. You either allocate on stack or

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-27 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 Zach the Mystic reachz...@gmail.com changed: What|Removed |Added CC|

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2013-11-24 Thread d-bugmail
https://d.puremagic.com/issues/show_bug.cgi?id=8845 yebblies yebbl...@gmail.com changed: What|Removed |Added CC||yebbl...@gmail.com ---

[Issue 8845] Can't pass immediate or rvalue args to ref function parameters

2012-10-17 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=8845 bearophile_h...@eml.cc changed: What|Removed |Added CC||bearophile_h...@eml.cc ---