https://issues.dlang.org/show_bug.cgi?id=16269
Nick Treleaven changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://issues.dlang.org/show_bug.cgi?id=16269
Nick Treleaven changed:
What|Removed |Added
See Also||https://issues.dlang.org/sh
https://issues.dlang.org/show_bug.cgi?id=16269
Jon Degenhardt changed:
What|Removed |Added
CC||jrdemail2000-dl...@yahoo.co
https://issues.dlang.org/show_bug.cgi?id=16269
--- Comment #9 from Ketmar Dark ---
so here is the fixed patch, and new tests:
===
diff --git a/src/object.d b/src/object.d
index 40e2391..5ac132c 100644
--- a/src/object.d
+++ b/src/object.d
@@ -1876,6 +1876,7 @
https://issues.dlang.org/show_bug.cgi?id=16269
Steven Schveighoffer changed:
What|Removed |Added
Assignee|nob...@puremagic.com|schvei...@yahoo.com
--
https://issues.dlang.org/show_bug.cgi?id=16269
--- Comment #8 from Ketmar Dark ---
>I get a chance, I'll make a PR
thank you.
>I will check for null pointer in wrapper rather than the runtime code to avoid
>extra
>opaque calls.
yes, this is way better, tnx again. i planned to do exactly that, b
https://issues.dlang.org/show_bug.cgi?id=16269
--- Comment #7 from Steven Schveighoffer ---
Just adding a note for myself when I make the PR, the AA is and always will be
an implementation pointer as the only member. I will check for null pointer in
wrapper rather than the runtime code to avoid e
https://issues.dlang.org/show_bug.cgi?id=16269
--- Comment #6 from Steven Schveighoffer ---
Thanks, this looks really good. I like the returning of itself, so you just put
ensureAllocated on the call and it just works in all cases where you normally
have an AA.
When I get a chance, I'll make a P
https://issues.dlang.org/show_bug.cgi?id=16269
--- Comment #5 from Ketmar Dark ---
oops. forgot to fix the comment. sorry. ;-)
--
https://issues.dlang.org/show_bug.cgi?id=16269
--- Comment #4 from Ketmar Dark ---
another try. this time it adds `ensureAllocated()` method, which can be used
like this:
==
void test (string[int] aa) { aa[42] = "42"; }
void main () {
// inline
{
str
https://issues.dlang.org/show_bug.cgi?id=16269
Ketmar Dark changed:
What|Removed |Added
Summary|add `aa.clear!true` method |add `aa.ensureAllocated`
|to
11 matches
Mail list logo