https://issues.dlang.org/show_bug.cgi?id=8845
Walter Bright changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=8845
Carsten Blüggel changed:
What|Removed |Added
CC||chi...@posteo.net
--
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)
https://issues.dlang.org/show_bug.cgi?id=8845
Nick Treleaven changed:
What|Removed |Added
CC|
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
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
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?
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
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
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:
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:
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:
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
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
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:
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.
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
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
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
https://d.puremagic.com/issues/show_bug.cgi?id=8845
Zach the Mystic reachz...@gmail.com changed:
What|Removed |Added
CC|
https://d.puremagic.com/issues/show_bug.cgi?id=8845
yebblies yebbl...@gmail.com changed:
What|Removed |Added
CC||yebbl...@gmail.com
---
http://d.puremagic.com/issues/show_bug.cgi?id=8845
bearophile_h...@eml.cc changed:
What|Removed |Added
CC||bearophile_h...@eml.cc
---
22 matches
Mail list logo