Re: Nogc Associative Array?

2016-08-25 Thread Laeeth Isharc via Digitalmars-d-learn
On Thursday, 25 August 2016 at 18:14:42 UTC, Illuminati wrote: Does D have a non-gc based associative array? If not, what would be a good way to go about creating one? See EMSI containers in code.dlang.org

Re: union mutability

2016-08-25 Thread Jack Applegame via Digitalmars-d-learn
On Thursday, 25 August 2016 at 19:19:49 UTC, Jonathan M Davis wrote: Why? I don't know exactly what that PR is supposed to do, but std.datetime uses immutable time zone objects, and if that PR made it so that you couldn't have an immutable instance of a class, then it would have failed the

Re: union mutability

2016-08-25 Thread Jack Applegame via Digitalmars-d-learn
Also I hate Rebindable.

[Issue 15703] @safe code should not allow certain types of array casts

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15703 Walter Bright changed: What|Removed |Added Keywords||pull --- Comment

Re: Optimisation possibilities: current, future and enhancements

2016-08-25 Thread Basile B. via Digitalmars-d
On Thursday, 25 August 2016 at 22:37:13 UTC, kinke wrote: On Thursday, 25 August 2016 at 18:15:47 UTC, Basile B. wrote: From my perspective, the problem with this example isn't missed optimization potential. It's the code itself. Why waste implementation efforts for such optimizations, if that

Re: Minor updates: gen-package-version v1.0.4 and sdlang-d v0.9.6

2016-08-25 Thread Chris Wright via Digitalmars-d-announce
On Tue, 23 Aug 2016 12:19:12 -0400, Nick Sabalausky wrote: > Couple very minor updates: Please, for the love of potatoes, tell people what the project is for! gen-package-version creates a package version string for D projects. Add a hook to your dub.json and then you can show off what version

Re: Optimisation possibilities: current, future and enhancements

2016-08-25 Thread kinke via Digitalmars-d
On Thursday, 25 August 2016 at 18:15:47 UTC, Basile B. wrote: The problem here that the example is bad with too agressive optimizations because the CALLs are eliminated despite of no inlining. [...] int use(const(Foo) foo) { return foo.foo() + foo.foo(); } From my perspective, the

[Issue 16365] cannot allow calling function pointer from delegate in @safe code

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16365 Walter Bright changed: What|Removed |Added Keywords||pull --- Comment

[Issue 16365] cannot allow calling function pointer from delegate in @safe code

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16365 --- Comment #4 from Walter Bright --- Related PR: https://github.com/dlang/dmd/pull/5860 --

[Issue 11176] array.ptr in @safe code may point past end of array

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11176 Walter Bright changed: What|Removed |Added See Also|

[Issue 16365] cannot allow calling function pointer from delegate in @safe code

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16365 Walter Bright changed: What|Removed |Added Hardware|x86_64 |All See

Re: union mutability

2016-08-25 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, August 25, 2016 18:27:25 Jack Applegame via Digitalmars-d-learn wrote: > On Thursday, 25 August 2016 at 17:01:40 UTC, Meta wrote: > > This should be fixed pretty soon: > > https://github.com/dlang/dmd/pull/5940 > > Bye-bye immutable classes. :'( Why? I don't know exactly what that

[Issue 14238] DIP25: escape checks can be circumvented with delegate

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14238 Walter Bright changed: What|Removed |Added Keywords||pull --

[Issue 15660] break "immutable" with pure function and mutable reference params

2016-08-25 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15660 Walter Bright changed: What|Removed |Added CC|

Possible range idiom that I find useful, especially in @nogc

2016-08-25 Thread Tofu Ninja via Digitalmars-d
So this is a small thing but I find it definitely useful in my own ranges and wished the ranges in phobos did this. A lot of ranges in phobos take an alias to a function and somehow use that to generate the output range, for example map. But it can be annoying when your map function needs

<    1   2