https://issues.dlang.org/show_bug.cgi?id=15651
Iain Buclaw changed:
What|Removed |Added
Priority|P1 |P3
--
https://issues.dlang.org/show_bug.cgi?id=15651
anonymous4 changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=15651
--- Comment #8 from anonymous4 ---
If you want the mutable ranges to process inout data, they should be able to
return inout data unless you want to do the front(inout collection) thing.
--
https://issues.dlang.org/show_bug.cgi?id=15651
--- Comment #7 from Steven Schveighoffer ---
(In reply to Harry Vennik from comment #6)
> /* inout resolves to mutable in call to getRef */
> c.getRef(5) = 8; // Undefined behavior
That would fail because c.getRef(5) would return ref
https://issues.dlang.org/show_bug.cgi?id=15651
--- Comment #6 from Harry Vennik ---
(In reply to Steven Schveighoffer from comment #3)
> In fact, we should allow inout to be used ANYWHERE, except global variables
> (as putting inout variables in global space can change the meaning from call
> to
https://issues.dlang.org/show_bug.cgi?id=15651
--- Comment #5 from Harry Vennik ---
(In reply to Steven Schveighoffer from comment #3)
> I'd try my hand at an inout improvement DIP, but I feel it would likely be
> rejected on principle, since inout is so disfavored by leadership.
I already have
https://issues.dlang.org/show_bug.cgi?id=15651
--- Comment #4 from anonymous4 ---
It will need separation between collections and iterators
---
struct A
{
int[][] a;
inout(int[])[] f() inout
{
return a.filter(x=>x!=null).array;
}
}
https://issues.dlang.org/show_bug.cgi?id=15651
Steven Schveighoffer changed:
What|Removed |Added
CC||schvei...@yahoo.com
--- Comment #3
https://issues.dlang.org/show_bug.cgi?id=15651
anonymous4 changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=15651
Simen Kjaeraas changed:
What|Removed |Added
CC||simen.kja...@gmail.com
https://issues.dlang.org/show_bug.cgi?id=15651
Harry Vennik changed:
What|Removed |Added
CC||htven...@gmail.com
--
https://issues.dlang.org/show_bug.cgi?id=15651
Alex changed:
What|Removed |Added
CC||sascha.or...@gmail.com
--
12 matches
Mail list logo