[Issue 8930] std.algorithm.remove only operates on hasLvalueElements
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Apr 30 12:22:44 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=8930
Jon Degenhardt <jrdemail2000-dlang at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jrdemail2000-dlang at yahoo.co
| |m
--- Comment #1 from Jon Degenhardt <jrdemail2000-dlang at yahoo.com> ---
A related thread from the learn forum:
https://forum.dlang.org/thread/pgkeyucvwalwcgmxwpdl@forum.dlang.org
Example from the thread:
char[] thing = ['a', 'b', 'c'];
thing = thing.remove(1);
The above does not compile. Switching to However, the following does:
ubyte[] thing = ['a', 'b', 'c'];
thing = thing.remove(1);
Many users might expect remove to work on char[] also. It does work with
dchar[] arrays.
--
More information about the Digitalmars-d-bugs
mailing list