Re: Precise GC state

2017-11-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 24 November 2017 at 05:34:14 UTC, Adam Wilson wrote: RAII+stack allocations make sense when I care about WHEN an object is released and wish to provide some semblance of control over deallocation (although as Andrei has pointed out numerous time, you have no idea how many objects

Re: Intellij D Language v1.15.2

2017-11-23 Thread ikod via Digitalmars-d-announce
On Thursday, 23 November 2017 at 20:11:01 UTC, singingbush wrote: Hi all. A new release intellij-dlanguage plugin has been made available for download from the Jetbrains repository this week. There is also support for debugging with GDB (since v1.14 1st Nov). We need to completely overhaul

Re: Looking for a job in USA

2017-11-23 Thread codephantom via Digitalmars-d
On Friday, 24 November 2017 at 06:13:59 UTC, Mike Parker wrote: On Friday, 24 November 2017 at 05:36:52 UTC, codephantom wrote: btw. I read somewhere that this forum software can't delete threads. That sounds pretty silly. Even sillier if it's true. The forum software is a frontend for a

Re: Looking for a job in USA

2017-11-23 Thread Mike Parker via Digitalmars-d
On Friday, 24 November 2017 at 05:36:52 UTC, codephantom wrote: btw. I read somewhere that this forum software can't delete threads. That sounds pretty silly. Even sillier if it's true. The forum software is a frontend for a newsgroup server, which also backs a mailing list. Although it

Re: Precise GC state

2017-11-23 Thread Dmitry Olshansky via Digitalmars-d
On Friday, 24 November 2017 at 05:34:14 UTC, Adam Wilson wrote: On 11/23/17 13:40, Ola Fosheim Grøstad wrote: On Thursday, 23 November 2017 at 20:13:31 UTC, Adam Wilson wrote: I would focus on a generational GC first for two reasons. The But generational GC only makes sense if many of your

Re: Looking for a job in USA

2017-11-23 Thread codephantom via Digitalmars-d
On Friday, 24 November 2017 at 04:33:52 UTC, Walter Bright wrote: These posts have nothing to do with D, so please stop posting them. This isn't a political forum. Also, perhaps you could delegate the policing of off topic threads to someone else..?? We could all use your attention

Re: Precise GC state

2017-11-23 Thread Adam Wilson via Digitalmars-d
On 11/23/17 13:40, Ola Fosheim Grøstad wrote: On Thursday, 23 November 2017 at 20:13:31 UTC, Adam Wilson wrote: I would focus on a generational GC first for two reasons. The But generational GC only makes sense if many of your GC objects have a short life span. I don't think this fits well

Re: Intellij D Language v1.15.2

2017-11-23 Thread Dmitry Olshansky via Digitalmars-d-announce
On Thursday, 23 November 2017 at 20:11:01 UTC, singingbush wrote: Hi all. A new release intellij-dlanguage plugin has been made available for download from the Jetbrains repository this week. The speed at which features and bug fixes are being done has picked up recently. We've had 4 releases

Re: betterC and noboundscheck

2017-11-23 Thread codephantom via Digitalmars-d-learn
On Friday, 24 November 2017 at 05:01:17 UTC, Basile B. wrote: On Friday, 24 November 2017 at 00:17:31 UTC, codephantom wrote: On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote: If I add -noboundscheck flag all works fine. dmd version is 2.076.1 Why -betterC flag not 'include'

Re: remake of remake of Konami's Knightmare

2017-11-23 Thread ketmar via Digitalmars-d-announce
bauss wrote: On Thursday, 23 November 2017 at 12:18:38 UTC, ketmar wrote: recently i worked on remake of DOS remake of Konami's Knightmare game[0]. the game is playable now, it has music from original MSX Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of course, and it

Re: betterC and noboundscheck

2017-11-23 Thread Basile B. via Digitalmars-d-learn
On Friday, 24 November 2017 at 00:17:31 UTC, codephantom wrote: On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote: If I add -noboundscheck flag all works fine. dmd version is 2.076.1 Why -betterC flag not 'include' -noboundscheck flag? It's bug or in some cases it's useful?

Re: remake of remake of Konami's Knightmare

2017-11-23 Thread bauss via Digitalmars-d-announce
On Thursday, 23 November 2017 at 12:18:38 UTC, ketmar wrote: recently i worked on remake of DOS remake of Konami's Knightmare game[0]. the game is playable now, it has music from original MSX Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of course, and it is FOSS. you can

Re: Looking for a job in USA

2017-11-23 Thread codephantom via Digitalmars-d
On Friday, 24 November 2017 at 04:33:52 UTC, Walter Bright wrote: These posts have nothing to do with D, so please stop posting them. This isn't a political forum. Are you going to go through every other thread, and post the same comment? This thread was off topic to begin with.

Re: Looking for a job in USA

2017-11-23 Thread codephantom via Digitalmars-d
On Friday, 24 November 2017 at 03:07:57 UTC, Indigo wrote: If you believe any of our "leaders" are actually leading this country in the right direction(regardless of party) then you are an imbecile. I hope you don't believe that. Those that think Trump is president material are morons. Those

Re: Looking for a job in USA

2017-11-23 Thread Walter Bright via Digitalmars-d
These posts have nothing to do with D, so please stop posting them. This isn't a political forum.

Re: Looking for a job in USA

2017-11-23 Thread Indigo via Digitalmars-d
On Friday, 24 November 2017 at 02:18:09 UTC, codephantom wrote: On Friday, 24 November 2017 at 01:26:49 UTC, Indigo wrote: Yes, there are good people, what you fail to realize is that there are very few running the show. So that's the purpose of having a democracy. You get to say who runs

Re: Looking for a job in USA

2017-11-23 Thread codephantom via Digitalmars-d
On Friday, 24 November 2017 at 01:26:49 UTC, Indigo wrote: Yes, there are good people, what you fail to realize is that there are very few running the show. So that's the purpose of having a democracy. You get to say who runs the show ;-) If (majority) people wanted Trump running the

Re: Looking for a job in USA

2017-11-23 Thread realdonaldtrump via Digitalmars-d
On Friday, 24 November 2017 at 01:26:49 UTC, Indigo wrote: On Thursday, 23 November 2017 at 05:08:39 UTC, codephantom wrote: [...] That's good, Australians are known for being hot headed! ;) j/k [...] I am working on draining the swamp. You seem like you are already tired of winning.

Re: Looking for a job in USA

2017-11-23 Thread Indigo via Digitalmars-d
On Thursday, 23 November 2017 at 05:08:39 UTC, codephantom wrote: On Thursday, 23 November 2017 at 04:13:33 UTC, Indigo wrote: Wow, no need to get offended Actually, I was not at all offended. And we always find it kind of humorous, how people around the world view Australia. We don't

[Issue 17997] autotester's d_do_test has strange failures with Win32

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17997 --- Comment #3 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bcae082b71508c1f661e71b8ccc7a0868ec24825 fix Issue 17997 - autotester's d_do_test has strange failures

[Issue 17997] autotester's d_do_test has strange failures with Win32

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17997 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: betterC and noboundscheck

2017-11-23 Thread codephantom via Digitalmars-d-learn
On Wednesday, 22 November 2017 at 15:10:40 UTC, Oleg B wrote: If I add -noboundscheck flag all works fine. dmd version is 2.076.1 Why -betterC flag not 'include' -noboundscheck flag? It's bug or in some cases it's useful? Interestingly, ldc2 will compile this ok, without the -noboundscheck

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-23 Thread codephantom via Digitalmars-d
On Wednesday, 22 November 2017 at 10:20:49 UTC, Jonathan M Davis wrote: LOL. I assumed that you were legitimately asking what the name of his compiler was, because I knew that he was writing a D compiler, whereas you were questioning his knowledge/credentials. Timon is a very smart guy. He

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-23 Thread codephantom via Digitalmars-d
On Wednesday, 22 November 2017 at 18:16:16 UTC, Wyatt wrote: Perhaps that's why I've never considered nulls to be an issue. I take proactive steps to protect my code, before the compiler ever sees it. And actually, I cannot recall any null related error in any code I've deployed. It's just

Re: Precise GC state

2017-11-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 23 November 2017 at 20:13:31 UTC, Adam Wilson wrote: I would focus on a generational GC first for two reasons. The But generational GC only makes sense if many of your GC objects have a short life span. I don't think this fits well with sensible use of a language like D where

[Issue 15542] pure function with no argument returning different values (with void-initialized static array)

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15542 --- Comment #5 from Jonathan M Davis --- (In reply to ag0aep6g from comment #4) > Note that the test code still compiles even when you add `@safe`. Void > initialization of value types is considered `@safe`. Hmmm. I'm

Re: Precise GC state

2017-11-23 Thread Adam Wilson via Digitalmars-d
On 11/23/17 02:47, Nordlöw wrote: On Wednesday, 22 November 2017 at 13:44:22 UTC, Nicholas Wilson wrote: Thats a linker(?) limitation for OMF (or whatever is the win32 object file format). Was just fixed! What improvements to D's concurrency model is made possible with this precise GC? I

Intellij D Language v1.15.2

2017-11-23 Thread singingbush via Digitalmars-d-announce
Hi all. A new release intellij-dlanguage plugin has been made available for download from the Jetbrains repository this week. The speed at which features and bug fixes are being done has picked up recently. We've had 4 releases this month alone. It would be really helpful if there are any

Re: reduce condition nesting

2017-11-23 Thread Michael via Digitalmars-d-learn
On Thursday, 23 November 2017 at 14:16:25 UTC, Andrea Fontana wrote: On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe wrote: On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: for instance in kotlin it can be replace with this: when { c1 -> foo(), c2 -> bar(),

Re: reduce condition nesting

2017-11-23 Thread Temtaime via Digitalmars-d-learn
On Thursday, 23 November 2017 at 14:16:25 UTC, Andrea Fontana wrote: On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe wrote: On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: for instance in kotlin it can be replace with this: when { c1 -> foo(), c2 -> bar(),

Re: GUI program on Mac OS in D?

2017-11-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-11-23 17:06, Adam D. Ruppe wrote: I know we have the extern(Objective-C) stuff from https://wiki.dlang.org/DIP43 now, but do we have existing bindings anywhere along the lines of the win32 ones we can just import and start calling the operating system functions? Not as far as I know.

[Issue 15542] pure function with no argument returning different values (with void-initialized static array)

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15542 ag0ae...@gmail.com changed: What|Removed |Added CC||ag0ae...@gmail.com --- Comment #4 from

Re: reduce condition nesting

2017-11-23 Thread drug via Digitalmars-d-learn
23.11.2017 17:16, Andrea Fontana пишет: On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe wrote: On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: for instance in kotlin it can be replace with this: when {     c1 -> foo(),     c2 -> bar(),     c3 -> ...     else ->

[Issue 15542] pure function with no argument returning different values (with void-initialized static array)

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15542 Jonathan M Davis changed: What|Removed |Added CC|

Re: GUI program on Mac OS in D?

2017-11-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 November 2017 at 16:14:50 UTC, Guillaume Piolat wrote: Perhaps https://github.com/p0nce/DerelictCocoa Well, that would be one option, though I was hoping to avoid the extern(C) runtime stuff and dynamic loading - ideally, I want something with the extern(Objective-C) stuff

Re: Mirroring a drawable buf in DLangUI?

2017-11-23 Thread Dukc via Digitalmars-d-learn
On Thursday, 23 November 2017 at 13:31:23 UTC, Vadim Lopatin wrote: There is no such feature currently, but it can be added easy. In the meantime I should call OpenGL (I think it's the backend in my case) directly, correct?

Re: GUI program on Mac OS in D?

2017-11-23 Thread Guillaume Piolat via Digitalmars-d-learn
On Thursday, 23 November 2017 at 16:06:28 UTC, Adam D. Ruppe wrote: I know we have the extern(Objective-C) stuff from https://wiki.dlang.org/DIP43 now, but do we have existing bindings anywhere along the lines of the win32 ones we can just import and start calling the operating system

GUI program on Mac OS in D?

2017-11-23 Thread Adam D. Ruppe via Digitalmars-d-learn
I know we have the extern(Objective-C) stuff from https://wiki.dlang.org/DIP43 now, but do we have existing bindings anywhere along the lines of the win32 ones we can just import and start calling the operating system functions? Moreover, I'm not a Mac dev; I've never actually done so much of

Re: opAssign for most struct assignment calls not executed

2017-11-23 Thread Timoses via Digitalmars-d-learn
On Thursday, 23 November 2017 at 15:45:17 UTC, Rene Zwanenburg wrote: On Thursday, 23 November 2017 at 15:26:03 UTC, Timoses wrote: A aaa = a; That's initialization, not assignment, which is subtly different. It will call the postblit on aaa instead of opAssign. A postblit can be

Re: opAssign for most struct assignment calls not executed

2017-11-23 Thread Rene Zwanenburg via Digitalmars-d-learn
On Thursday, 23 November 2017 at 15:26:03 UTC, Timoses wrote: A aaa = a; That's initialization, not assignment, which is subtly different. It will call the postblit on aaa instead of opAssign. A postblit can be defined this way: this(this) { } There is no way to access the original a

Re: opAssign for most struct assignment calls not executed

2017-11-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 November 2017 at 15:26:03 UTC, Timoses wrote: A member; this(A a) { this.member = a; // specifically aiming towards this assignment... That's not assignment, that's construction. opAssign is only called when you assign over a struct object that already

Re: Communicating between vibe.d's worker tasks

2017-11-23 Thread Timoses via Digitalmars-d-learn
On Thursday, 23 November 2017 at 10:15:26 UTC, Nordlöw wrote: I'm looking at http://vibed.org/api/vibe.core.concurrency/makeIsolated which is a great idea for safe inter-thread communication. Are there any more usage examples for vibe's worker tasks that show how to send instances of

opAssign for most struct assignment calls not executed

2017-11-23 Thread Timoses via Digitalmars-d-learn
What am I missing? import std.stdio; struct A { int value; A opAssign(A a) { writeln(" Assigning"); return this; // I know this makes little sense, just for illustration } } class B { A member; this(A a) { this.member = a; //

Re: Decimal handling for currency (precision)

2017-11-23 Thread Andrea Fontana via Digitalmars-d-learn
On Thursday, 23 November 2017 at 14:47:21 UTC, aberba wrote: Some suggest working with the lowest currency denomination to avoid decimal precision handling and only convert to the highest denominations (decimal) when displaying. I've also seen some use decimal value handling libraries. I'm

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-23 Thread Ola Fosheim Grøstad via Digitalmars-d
On Thursday, 23 November 2017 at 08:47:43 UTC, codephantom wrote: Many high level languages let you use 'unsafe' code, where you can write erroneous operations - and then you're back in the world of undefined behaviour. Not many, but many allow interfacing with C, then it is up to those user

Decimal handling for currency (precision)

2017-11-23 Thread aberba via Digitalmars-d-learn
Some suggest working with the lowest currency denomination to avoid decimal precision handling and only convert to the highest denominations (decimal) when displaying. I've also seen some use decimal value handling libraries. I'm thinking lowest denominations will result in extremely large

Re: remake of remake of Konami's Knightmare

2017-11-23 Thread ketmar via Digitalmars-d-announce
Martin Drašar wrote: Neat! Instead of working, I was spamming shift like crazy... glad that you liked it! this little thingy is very addictive. ;-) Now, when you say a partial port, did you make some automated translation or it is just a manual labor with lotta love? fully manual work. ah,

Re: reduce condition nesting

2017-11-23 Thread Andrea Fontana via Digitalmars-d-learn
On Thursday, 23 November 2017 at 13:47:37 UTC, Adam D. Ruppe wrote: On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: for instance in kotlin it can be replace with this: when { c1 -> foo(), c2 -> bar(), c3 -> ... else -> someDefault() } The `switch` statement

[Issue 17966] chunkBy cannot accept an input range (from multiwayMerge)

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17966 greenify changed: What|Removed |Added Status|RESOLVED|REOPENED

Re: remake of remake of Konami's Knightmare

2017-11-23 Thread Martin Drašar via Digitalmars-d-announce
Dne 23.11.2017 v 13:18 ketmar via Digitalmars-d-announce napsal(a): > recently i worked on remake of DOS remake of Konami's Knightmare > game[0]. the game is playable now, it has music from original MSX > Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of > course, and it is

Re: Best way to call external function from another process memory?

2017-11-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 November 2017 at 11:35:18 UTC, Skuzzi wrote: typedef void (__stdcall* _function) (const char *text); I want to do this in D. I understand that D uses "extern (C)" and does away with specifying calling conventions. However, how does D know the calling convention required? What

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-23 Thread rjframe via Digitalmars-d
On Thu, 23 Nov 2017 01:08:45 +, codephantom wrote: > So yeah, you can change the language.. or you can change the way people > think about their code. When they think differently, their code will > change accordingly. > > My point about sophisticated IDE's and AI like compilers, is that they

[Issue 5727] "ptr" in inline asm

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5727 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Re: reduce condition nesting

2017-11-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: for instance in kotlin it can be replace with this: when { c1 -> foo(), c2 -> bar(), c3 -> ... else -> someDefault() } The `switch` statement covers some of these cases too.

deep copy thread local to shared or how to send() struct with indirections

2017-11-23 Thread crimaniak via Digitalmars-d-learn
Hi! I need to send Publish struct from https://github.com/tchaloupka/vibe-mqtt to another vibe.d task. And there is the problem. First of all, I can't make it immutable because send() wants to mutate it. I can't send local copy because of "Aliases to mutable thread-local data not allowed.".

Re: Mirroring a drawable buf in DLangUI?

2017-11-23 Thread Vadim Lopatin via Digitalmars-d-learn
On Tuesday, 21 November 2017 at 13:45:31 UTC, Dukc wrote: I am using the DrawRescaled method of DrawBuf[1] of DLangUI To draw a PNG image to a CanvasWidget[2] subclass. It has a minor issue of the box bounds showing in area that shoud be transparent but otherwise works well. My question is,

Re: Beta 2.077.1

2017-11-23 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 23 November 2017 at 13:09:09 UTC, Petar Kirov [ZombineDev] wrote: On Thursday, 23 November 2017 at 13:06:14 UTC, Petar Kirov [ZombineDev] wrote: On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson wrote: On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote:

Re: Beta 2.077.1

2017-11-23 Thread codephantom via Digitalmars-d-announce
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote: First beta for the 2.077.1 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.077.1.html Please report any bugs at https://issues.dlang.org - -Martin FreeBSD binaries too. I love it!

Re: Looking for a job in USA

2017-11-23 Thread codephantom via Digitalmars-d
On Thursday, 23 November 2017 at 12:05:53 UTC, aberba wrote: When you analyse those points mentioned above you realise that things are happening exactly. For a writing of almost 2000 years ago. The writing you mention, can be said to be true for pretty much any epoch in the evolution of

Re: Beta 2.077.1

2017-11-23 Thread Petar via Digitalmars-d-announce
On Thursday, 23 November 2017 at 13:06:14 UTC, Petar Kirov [ZombineDev] wrote: On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson wrote: On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote: First beta for the 2.077.1 point release.

Re: Beta 2.077.1

2017-11-23 Thread Petar via Digitalmars-d-announce
On Thursday, 23 November 2017 at 12:04:05 UTC, Nicholas Wilson wrote: On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote: First beta for the 2.077.1 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.077.1.html Please report any bugs at

remake of remake of Konami's Knightmare

2017-11-23 Thread ketmar via Digitalmars-d-announce
recently i worked on remake of DOS remake of Konami's Knightmare game[0]. the game is playable now, it has music from original MSX Knightmare, and sfx/gfx/levels from DOS remake. it is written in D, of course, and it is FOSS. you can find the sources here[1]. as usual, you'll need my IV

Re: Looking for a job in USA

2017-11-23 Thread aberba via Digitalmars-d
On Wednesday, 22 November 2017 at 10:24:52 UTC, Indigo wrote: On Saturday, 18 November 2017 at 08:59:53 UTC, Satoshi wrote: On Saturday, 18 November 2017 at 01:31:09 UTC, Indigo wrote: On Wednesday, 15 November 2017 at 17:32:50 UTC, Satoshi wrote: Hi, as the title says, I'm looking for a job

Re: Beta 2.077.1

2017-11-23 Thread Nicholas Wilson via Digitalmars-d-announce
On Thursday, 23 November 2017 at 11:43:08 UTC, Martin Nowak wrote: First beta for the 2.077.1 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.077.1.html Please report any bugs at https://issues.dlang.org - -Martin Issue 17966 is a phobos bug. Why are

Re: Release Candidate [was: Re: Beta 2.077.0]

2017-11-23 Thread Martin Nowak via Digitalmars-d-announce
On 11/02/2017 09:43 AM, Basile B. wrote: > On Monday, 30 October 2017 at 11:12:29 UTC, Basile B. wrote: >> On Saturday, 28 October 2017 at 23:21:56 UTC, Martin Nowak wrote: >>> First release candidate for 2.077.0. >>> >>> The OMF Windows API import libraries were updated, a bug in >>> std.bigint

Re: Best way to call external function from another process memory?

2017-11-23 Thread rikki cattermole via Digitalmars-d-learn
On 23/11/2017 11:35 AM, Skuzzi wrote: Hi, I am new to D and I want to use it to create some tools that call certain functions from the process of a game, using an injected DLL written in D. I have reverse engineered the addresses and arguments of the function. Typically this kind of stuff is

Beta 2.077.1

2017-11-23 Thread Martin Nowak via Digitalmars-d-announce
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 First beta for the 2.077.1 point release. http://dlang.org/download.html#dmd_beta http://dlang.org/changelog/2.077.1.html Please report any bugs at https://issues.dlang.org - -Martin -BEGIN PGP SIGNATURE-

[Issue 16347] Strange deprecation message when using templates

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16347 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Best way to call external function from another process memory?

2017-11-23 Thread Skuzzi via Digitalmars-d-learn
Hi, I am new to D and I want to use it to create some tools that call certain functions from the process of a game, using an injected DLL written in D. I have reverse engineered the addresses and arguments of the function. Typically this kind of stuff is done with C++ and almost all the

Re: Problem building SWTSnippets with D 2.074.x

2017-11-23 Thread Mike James via Digitalmars-d-dwt
On Thursday, 16 November 2017 at 02:36:34 UTC, JamesD wrote: On Wednesday, 15 November 2017 at 07:19:17 UTC, Mike Parker wrote: On Tuesday, 14 November 2017 at 11:33:44 UTC, Mike James wrote: Has there been any progress on this matter? The snippets still don't compile with the latest

[Issue 18005] AA leak

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18005 radu.raca...@gmail.com changed: What|Removed |Added CC||radu.raca...@gmail.com --- Comment

Re: Communicating between vibe.d's worker tasks

2017-11-23 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 23 November 2017 at 10:15:26 UTC, Nordlöw wrote: I'm looking at http://vibed.org/api/vibe.core.concurrency/makeIsolated which is a great idea for safe inter-thread communication. Are there any more usage examples for vibe's worker tasks that show how to send instances of

Re: Precise GC state

2017-11-23 Thread Nordlöw via Digitalmars-d
On Wednesday, 22 November 2017 at 13:44:22 UTC, Nicholas Wilson wrote: Thats a linker(?) limitation for OMF (or whatever is the win32 object file format). Was just fixed! What improvements to D's concurrency model is made possible with this precise GC? I recall Martin Nowak saying at DConf

Re: Communicating between vibe.d's worker tasks

2017-11-23 Thread Nordlöw via Digitalmars-d-learn
On Thursday, 23 November 2017 at 10:15:26 UTC, Nordlöw wrote: I'm looking at http://vibed.org/api/vibe.core.concurrency/makeIsolated Further, what does "weakly isolated" mean here http://vibed.org/api/vibe.core.core/runWorkerTask ?

[Issue 16275] final functions allowed

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16275 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Communicating between vibe.d's worker tasks

2017-11-23 Thread Nordlöw via Digitalmars-d-learn
I'm looking at http://vibed.org/api/vibe.core.concurrency/makeIsolated which is a great idea for safe inter-thread communication. Are there any more usage examples for vibe's worker tasks that show how to send instances of `Isolated` to an existing such worker task via some low-latency

[Issue 16520] static foreach should be more explicit

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16520 RazvanN changed: What|Removed |Added Status|NEW |RESOLVED

Re: Error: 'this' is only defined in non-static member functions

2017-11-23 Thread Jacob Carlborg via Digitalmars-d-learn
On 2017-11-23 01:35, Jonathan M Davis wrote: It would make sense with something like the nodes of a linked list if they needed access to the container for some reason. Pretty much any case where a an instance of a nested class is going to be associated with a specific instance of its parent

Re: TickDuration deprecation

2017-11-23 Thread Jacob Carlborg via Digitalmars-d
On 2017-11-22 22:41, Walter Bright wrote: For another example, unreferenced virtual functions never get elided because a reference to them does exist - they're in the virtual function pointer table. And then, of course, everything that virtual function references is never elided. Yeah,

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-23 Thread codephantom via Digitalmars-d
On Thursday, 23 November 2017 at 07:20:41 UTC, Ola Fosheim Grostad wrote: On Thursday, 23 November 2017 at 01:16:59 UTC, codephantom wrote: That's why we have the concept of 'undefined behaviour'. Errr, no. High level programming languages don't have undefined behaviour. That is a C concept

Re: Introducing Nullable Reference Types in C#. Is there hope for D, too?

2017-11-23 Thread codephantom via Digitalmars-d
On Thursday, 23 November 2017 at 07:13:37 UTC, Ola Fosheim Grostad wrote: Heh, has the Goldbach conjecture been proven undecidable? Not to my knowledge ;-) At best, it's a possiblity - which can go either way. No human or computer will ever make it anything more than that. Ever. Someone

Re: reduce condition nesting

2017-11-23 Thread Andrey via Digitalmars-d-learn
On Thursday, 23 November 2017 at 08:27:54 UTC, Andrea Fontana wrote: On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: Hello, is there way to reduce this condition: if (c1) { foo(); } else { if (c2) { bar(); } else { if (c3) { ... } }

Re: glfwSetDropCallback undefined symbol

2017-11-23 Thread drug via Digitalmars-d-learn
23.11.2017 09:33, Tim Hsu пишет: DCD and DMD says that the symbol is undefined! However, I look into derelichtGLFW3. It has this symbol defined! It looks like a bug for me! DerelictGLFW3 has this symbol, but it does not define it, it should be defined in shared/dynamic library you use. I

Re: reduce condition nesting

2017-11-23 Thread Andrea Fontana via Digitalmars-d-learn
On Thursday, 23 November 2017 at 05:19:27 UTC, Andrey wrote: Hello, is there way to reduce this condition: if (c1) { foo(); } else { if (c2) { bar(); } else { if (c3) { ... } } } for instance in kotlin it can be replace with this: when { c1

[Issue 18007] Enforcing immutability

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18007 Saanvi Sharma changed: What|Removed |Added Keywords||C++ --

[Issue 18007] New: Enforcing immutability

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18007 Issue ID: 18007 Summary: Enforcing immutability Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: enhancement Priority: P1

[Issue 15542] pure function with no argument returning different values (with void-initialized static array)

2017-11-23 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15542 RazvanN changed: What|Removed |Added CC|