Re: Wrong vtable for COM interfaces that don't inherit IUnknown

2019-07-20 Thread Kagamin via Digitalmars-d-learn
On Tuesday, 16 July 2019 at 01:38:49 UTC, evilrat wrote: Also from what I see MS done this intentionally, means they either no longer loves COM or there was some other good reason. Primary consumer of COM interfaces is Visual Basic. It was really only Bill Gates who loved Basic, he wrote a

Re: OT: in economic terms Moore's Law is already dead

2019-07-20 Thread Kagamin via Digitalmars-d-learn
TBH modern computers are obscenely powerful, I just spent weeks on celeron 1.8GHz 2mb L2 cache 2gb ram computer and didn't see any slowness on it despite some bloated software in python and a strange text editor pluma that ate 150mb ram just editing a plain text file, I swear it's not based on

Re: Is this a new bug ?

2019-07-20 Thread Newbie2019 via Digitalmars-d-learn
On Saturday, 20 July 2019 at 14:19:08 UTC, Adam D. Ruppe wrote: Like the other person said, try/catch turns throws to nothrow. The `debug` keyword disables pure checks. Those make this easy without any mixin or wrappers/casts at all. But even if you did want to do the mixin route, look at

Re: Is this a new bug ?

2019-07-20 Thread Adam D. Ruppe via Digitalmars-d-learn
On Saturday, 20 July 2019 at 09:01:21 UTC, Newbie2019 wrote: I want to cast std.stdio : writefln into pure function pointer, so I can call it from debug pure function. Like the other person said, try/catch turns throws to nothrow. The `debug` keyword disables pure checks. Those make this easy

Moving location of dub packages?

2019-07-20 Thread Paul via Digitalmars-d-learn
I'd like to move where dub has stored packages to a shorter path, is there a procedure for this? Thanks in advance!

Re: Is this a new bug ?

2019-07-20 Thread Boris Carvajal via Digitalmars-d-learn
On Saturday, 20 July 2019 at 09:01:47 UTC, Newbie2019 wrote: On Saturday, 20 July 2019 at 09:01:21 UTC, Newbie2019 wrote: I want to cast std.stdio : writefln into pure function pointer, so I can call it from debug pure function. is there a way to work around the pure check for call writefln

Re: Is this a new bug ?

2019-07-20 Thread Newbie2019 via Digitalmars-d-learn
On Saturday, 20 July 2019 at 09:01:21 UTC, Newbie2019 wrote: I want to cast std.stdio : writefln into pure function pointer, so I can call it from debug pure function. is there a way to work around the pure check for call writefln ? nothrow check, not pure.

Re: Is this a new bug ?

2019-07-20 Thread Newbie2019 via Digitalmars-d-learn
On Saturday, 20 July 2019 at 06:43:03 UTC, user1234 wrote: use `__traits(identifier)` instead of `.stringof`, see https://dlang.org/spec/traits.html#identifier. as explained this is not a new bug, not even a bug according to me. I want to cast std.stdio : writefln into pure function

Re: Is this a new bug ?

2019-07-20 Thread user1234 via Digitalmars-d-learn
On Saturday, 20 July 2019 at 05:21:01 UTC, Newbie2019 wrote: On Saturday, 20 July 2019 at 04:18:15 UTC, Adam D. Ruppe wrote: show me what you're doing now and I'll see which case it is. Most the time I see these, the code is significantly simplified and bugs fixed by removing the usages of