Re: Dub + Optlink == ???

2015-03-09 Thread wobbles via Digitalmars-d-learn
On Sunday, 8 March 2015 at 23:05:53 UTC, David Held wrote: On 3/8/2015 3:55 PM, David Held wrote: Since DDT (Eclipse plugin) uses Dub, I am trying to convert the DWT build instructions into Dub. Here is my current attempt: { name : foo, description : foo, importPaths : [

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
Please confirm or deny that this is a real bug, as its getting in the way of a genuine project. How should I proceed? I'm working on a 64-bit Windows port of the following. http://www.cs.arizona.edu/icon/ Here's the 32-bit Windows port. http://www.cs.arizona.edu/icon/v95w.htm Among other

Re: std.stdio.writeln

2015-03-09 Thread ketmar via Digitalmars-d-learn
On Mon, 09 Mar 2015 14:48:19 +, John Colvin wrote: Yet another excellent example of why we should abolish the comma operator in D. or at least warn about it. producing a warning for such expression will ring a bell in programmers head: compiler is unhappy. i definitely doing something

Re: Derelict Assimp not loading mesh properly? (Maybe index buffer)

2015-03-09 Thread Michael Robertson via Digitalmars-d-learn
On Friday, 6 March 2015 at 02:41:19 UTC, Bennet wrote: I wrote a custom OBJ file importer which worked fairly well however was not robust enough to support everything. I've decided to give AssImp a shot. I followed some tutorials and have set up my code to read in the vertices, tex coords,

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Benjamin Thaut via Digitalmars-d-learn
On Monday, 9 March 2015 at 14:39:34 UTC, Carl Sturtivant wrote: Please confirm or deny that this is a real bug, as its getting in the way of a genuine project. How should I proceed? I'm working on a 64-bit Windows port of the following. http://www.cs.arizona.edu/icon/ Here's the 32-bit Windows

Re: std.stdio.writeln

2015-03-09 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 9 March 2015 at 14:38:41 UTC, Dennis Ritchie wrote: (1, 2, 3).writeln; // prints 3 that's not an array, use [1,2,3] for that. What you wrote is a parenthesis expression with comma expressions inside. The comma operator is a bit weird: it works like a semicolon, but

std.stdio.writeln

2015-03-09 Thread Dennis Ritchie via Digitalmars-d-learn
Hi. Why prints only the last element? import std.stdio; void main() { (1, 2, 3).writeln; // prints 3 }

Re: std.stdio.writeln

2015-03-09 Thread John Colvin via Digitalmars-d-learn
On Monday, 9 March 2015 at 14:38:41 UTC, Dennis Ritchie wrote: Hi. Why prints only the last element? import std.stdio; void main() { (1, 2, 3).writeln; // prints 3 } I think this is a misunderstanding about UFCS. 1.writeln(2, 3); is the same as writeln(1, 2, 3); and the

Re: std.stdio.writeln

2015-03-09 Thread Dennis Ritchie via Digitalmars-d-learn
On Monday, 9 March 2015 at 14:42:35 UTC, Adam D. Ruppe wrote: On Monday, 9 March 2015 at 14:38:41 UTC, Dennis Ritchie wrote: (1, 2, 3).writeln; // prints 3 that's not an array, use [1,2,3] for that. What you wrote is a parenthesis expression with comma expressions inside. The

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread David Nadlinger via Digitalmars-d-learn
On Sunday, 8 March 2015 at 18:18:49 UTC, Carl Sturtivant wrote: Should I be doing something special with linkage so this works? What is going on? IIRC there are some fixes to the Win64 context switching code in the 2.067 or master druntime. You might want to try those first before spending

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
I can reproduce this issue with dmd 2.066.1, please go forward and open a issue on https://issues.dlang.org/ Kind Regards Benjamin Thaut Thank you; will do.

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread via Digitalmars-d-learn
With the newest beta everything seems to work fine. http://forum.dlang.org/thread/md5kq0$8au$1...@digitalmars.com

Re: std.stdio.writeln

2015-03-09 Thread ketmar via Digitalmars-d-learn
On Mon, 09 Mar 2015 13:18:58 -0700, Jonathan M Davis via Digitalmars-d-learn wrote: On Monday, March 09, 2015 15:45:58 ketmar via Digitalmars-d-learn wrote: On Mon, 09 Mar 2015 14:48:19 +, John Colvin wrote: Yet another excellent example of why we should abolish the comma operator in

How does laziness and UFCS interact?

2015-03-09 Thread Logan Capaldo via Digitalmars-d-learn
I just became aware of http://dlang.org/phobos/std_exception.html#.ifThrown . It's neat, but it seems non-obvious to me how lazy + UFCS should work in general. consider void lazily(T)(lazy T expression) { expression(); } It's clear when saying lazily(a.b().c()); that the whole of

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
http://forum.dlang.org/thread/md5kq0$8au$1...@digitalmars.com Got a working build at 64 bits using the 2.067 beta 3. Delighted.

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
IIRC there are some fixes to the Win64 context switching code in the 2.067 or master druntime. You might want to try those first before spending more time tracking this down. Great, and thanks.

Re: std.stdio.writeln

2015-03-09 Thread Jonathan M Davis via Digitalmars-d-learn
On Monday, March 09, 2015 15:45:58 ketmar via Digitalmars-d-learn wrote: On Mon, 09 Mar 2015 14:48:19 +, John Colvin wrote: Yet another excellent example of why we should abolish the comma operator in D. or at least warn about it. producing a warning for such expression will ring a

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
On Monday, 9 March 2015 at 17:00:38 UTC, Jacques Müller wrote: With the newest beta everything seems to work fine. http://forum.dlang.org/thread/md5kq0$8au$1...@digitalmars.com That's great news! Thank you.

Re: std.stdio.writeln

2015-03-09 Thread Meta via Digitalmars-d-learn
On Monday, 9 March 2015 at 22:00:46 UTC, ketmar wrote: i remember that deprecation was rejected. maybe this is false memory, though. btw, there are legit uses of comma, in c-style `for`, for example. this should be left intact, i think (oh, can c-style `for` be deprecated too?! ). I think

Re: How does laziness and UFCS interact?

2015-03-09 Thread Ali Çehreli via Digitalmars-d-learn
On 03/09/2015 03:03 PM, Logan Capaldo wrote: I just became aware of http://dlang.org/phobos/std_exception.html#.ifThrown . It's neat, but it seems non-obvious to me how lazy + UFCS should work in general. consider void lazily(T)(lazy T expression) { expression(); } It's clear when saying

Re: string-int[] array

2015-03-09 Thread ketmar via Digitalmars-d-learn
On Sun, 08 Mar 2015 18:57:37 +, Kagamin wrote: http://dpaste.dzfl.pl/2c8d4a7d9ef0 like this. i hate annoying beginners too, but not to SUCH extent. signature.asc Description: PGP signature

Re: how to read some in vibe.d tcpconnection?

2015-03-09 Thread zhmt via Digitalmars-d-learn
On Sunday, 8 March 2015 at 13:56:37 UTC, Kagamin wrote: On Sunday, 8 March 2015 at 03:09:00 UTC, zhmt wrote: Yes, this a good idea, if the author of vibe.d do this, will be better, it is used frequently in many scenes. You can do it too, unlike in C++, in D you can write extension methods to