Re: Is this possible in D?

2015-02-19 Thread tcak via Digitalmars-d-learn
On Thursday, 19 February 2015 at 12:16:18 UTC, Mike Parker wrote: On Thursday, 19 February 2015 at 10:17:47 UTC, Dicebot wrote: Most practical approach I am currently aware of is wrapping actual implementation (in most restrictive version): I really like mixins for this sort of thing. ```

Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread via Digitalmars-d-announce
On Thursday, 19 February 2015 at 14:50:43 UTC, Bill Baxter wrote: If you weren't deliberately making a joke, you might want to google milf. What do you mean? It was my birthday! I became one year older!

Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread ketmar via Digitalmars-d-announce
On Thu, 19 Feb 2015 06:50:29 -0800, Bill Baxter via Digitalmars-d-announce wrote: If you weren't deliberately making a joke, you might want to google milf. no jokes, it's Serious Bussiness! do you think that our project architect will allow to build our own milf without googling? or our

Re: Is this possible in D?

2015-02-19 Thread ketmar via Digitalmars-d-learn
On Thu, 19 Feb 2015 08:24:06 +, Jonathan Marler wrote: I am having a heck of a time trying to figure out how to do this. How do I change the attributes of a function based on the version without copying the function body? For example: version(StaticVersion) { static void

Re: GC deadlocks on linux

2015-02-19 Thread Byron Heads via Digitalmars-d-learn
On Wednesday, 18 February 2015 at 21:21:11 UTC, Byron Heads wrote: On Wednesday, 18 February 2015 at 21:05:10 UTC, Byron Heads wrote: On Wednesday, 18 February 2015 at 20:55:56 UTC, ketmar wrote: On Wed, 18 Feb 2015 20:35:44 +, Byron Heads wrote: On Wednesday, 18 February 2015 at

Re: We are Beta (2.067.0-b2)

2015-02-19 Thread FrankLike via Digitalmars-d-announce
On Wednesday, 18 February 2015 at 14:13:25 UTC, Martin Nowak wrote: Find more information on the dmd-beta mailing list. http://forum.dlang.org/thread/54e41ca2.4060...@dawg.eu 'lib32mscoff' should be in there,what do you think? Frank

Re: D : dmd vs gdc : which one to choose?

2015-02-19 Thread ketmar via Digitalmars-d-learn
On Thu, 19 Feb 2015 22:10:11 +1300, Rikki Cattermole wrote: And anyway, GDC is still hasn't been updated to the latest version of D. And its the last major D compiler that hasn't. LDC is 2.067 already? O_O 'cause GDC is 2.066.1 now. signature.asc Description: PGP signature

State of Windows x64 COFF support?

2015-02-19 Thread Etienne via Digitalmars-d-learn
I'm having corrupt symbol table errors on a Win64 build of a big application, I can't find a way around it. I'm wondering if the COFF support is still experimental in DMD? Thanks!

Re: Google Summer of Code - Again

2015-02-19 Thread CraigDillabaugh via Digitalmars-d
On Thursday, 19 February 2015 at 15:36:55 UTC, Andrei Alexandrescu wrote: On 2/18/15 8:33 PM, Craig Dillabaugh wrote: Oh, so its official now - I think - I've submitted our orgnaizational proposal. I had to copy and paste my beautiful Latex document into a crappy web-form, I am so bitter

Re: Is this possible in D?

2015-02-19 Thread Mike Parker via Digitalmars-d-learn
On 2/20/2015 1:06 AM, tcak wrote: @OP: By using a token string (q{}) for funcBody rather than a WYSIWYG string (r or ``), you can still get syntax highlighting in your editor. Based on your example, bye bye readibility. It is like writing rocket taking off procedures. People are complaining

Re: let (x,y) = ...

2015-02-19 Thread Nick Treleaven via Digitalmars-d-announce
On 19/02/2015 17:00, Nick Treleaven wrote: Alternatively std.typetuple.TypeTuple can be used instead of let not for ranges and arrays though Yes, but `tuple` overloads could be added for those. Or not - the length isn't known at compile-time. Tuple already supports construction from a

Re: Template constraints

2015-02-19 Thread Nick Treleaven via Digitalmars-d
On 16/02/2015 19:31, Steven Schveighoffer wrote: Wait, isn't this OK? struct S(T) if(is(T == int)) { ... } struct S(T) if(is(T == double)) { ... } ... They may even be in multiple modules. Is this not overloading of types? I don't think this should be frowned upon. OK, so the idea

Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread Bill Baxter via Digitalmars-d-announce
If you weren't deliberately making a joke, you might want to google milf. And if you were... Hmm interesting sense of humor you have there. On Feb 18, 2015 11:40 PM, via Digitalmars-d-announce digitalmars-d-announce@puremagic.com wrote: On Wednesday, 18 February 2015 at 22:37:34 UTC, ketmar

Re: let (x,y) = ...

2015-02-19 Thread John Colvin via Digitalmars-d-announce
On Thursday, 19 February 2015 at 13:52:29 UTC, Nick Treleaven wrote: On 19/02/2015 04:38, thedeemon wrote: int x, y, z, age; string name; let (name, age) = getTuple(); // tuple let (x,y,z) = argv[1..4].map!(to!int); // lazy range let (x,y,z) = [1,2,3]; // array

[Issue 13167] Link errors with std.variant

2015-02-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=13167 --- Comment #3 from Kenji Hara k.hara...@gmail.com --- (In reply to growlercab from comment #2) Sorry, I just noticed the date on this bug. I am using DMD 2.67-b2 on Arch linux x86-64 DMD 2.066.1 works DMD 2.067-b2 fails with the linker

Re: GC deadlocks on linux

2015-02-19 Thread ketmar via Digitalmars-d-learn
On Thu, 19 Feb 2015 16:33:58 +, Byron Heads wrote: Now I am not sure. This code runs correctly: as i told you before, `fork()` is hard. you can experiment for monthes seeing strange bugs here and there, and seeing no bugs, and strange bugs, and... there are alot of things going on under

Re: let (x,y) = ...

2015-02-19 Thread Nick Treleaven via Digitalmars-d-announce
On 19/02/2015 14:59, John Colvin wrote: On Thursday, 19 February 2015 at 13:52:29 UTC, Nick Treleaven wrote: On 19/02/2015 04:38, thedeemon wrote: int x, y, z, age; string name; let (name, age) = getTuple(); // tuple let (x,y,z) = argv[1..4].map!(to!int); // lazy range let (x,y,z)

Re: quick-and-dirty minimalistic LISP engine

2015-02-19 Thread ketmar via Digitalmars-d-announce
On Thu, 19 Feb 2015 07:39:31 +, Ola Fosheim Grøstad wrote: That's quite ok. I enjoy just looking at D code by different authors to get a picture of how the language is used in real code. So thanks for sharing! same for me. i have a habit of downloading various D libraries and poking

Re: contiguous ranges

2015-02-19 Thread Pasqui23 via Digitalmars-d
On Thursday, 19 February 2015 at 19:32:26 UTC, Andrei Alexandrescu wrote: I don't see a need for contiguous ranges if the only embodiment is T[]. -- Andrei Yeah,but it could be useful to access where the range is located

Re: Are there any 2D games libraries available for D2?

2015-02-19 Thread extrawurst via Digitalmars-d
On Thursday, 19 February 2015 at 23:35:17 UTC, extrawurst wrote: On Thursday, 19 February 2015 at 23:32:45 UTC, Kingsley wrote: Hi I'm looking for a 2D games library in D2 similar to gosu from ruby: http://www.libgosu.org/ or ray: https://github.com/Mon-Ouie/ray Does such a thing exist?

Re: Are there any 2D games libraries available for D2?

2015-02-19 Thread stewarth via Digitalmars-d
On Thursday, 19 February 2015 at 23:36:13 UTC, extrawurst wrote: On Thursday, 19 February 2015 at 23:35:17 UTC, extrawurst wrote: On Thursday, 19 February 2015 at 23:32:45 UTC, Kingsley wrote: Hi I'm looking for a 2D games library in D2 similar to gosu from ruby: http://www.libgosu.org/ or

Re: D : dmd vs gdc : which one to choose?

2015-02-19 Thread Rikki Cattermole via Digitalmars-d-learn
On 20/02/2015 3:11 p.m., ketmar wrote: On Fri, 20 Feb 2015 02:08:19 +, ketmar wrote: On Fri, 20 Feb 2015 13:29:09 +1300, Rikki Cattermole wrote: On 20/02/2015 5:08 a.m., ketmar wrote: On Thu, 19 Feb 2015 22:10:11 +1300, Rikki Cattermole wrote: And anyway, GDC is still hasn't been

vibe-d basic build errors

2015-02-19 Thread Charles via Digitalmars-d-learn
Hi, I'm trying to follow the instructions for vibe-d with: dub init web vibe.d cd web dub and then add the line subConfigurations: {vibe-d: win32} to the dub.json file. This however is producing errors during linking. Could I get a hand? Pastebin of dub --vverbose:

[Issue 481] Letting compiler determine length for fixed-length arrays

2015-02-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=481 Brad Anderson e...@gnuk.net changed: What|Removed |Added CC||e...@gnuk.net --- Comment #31

Re: Problem Instantiating a BinaryHeap with a Comparison Function the needs this

2015-02-19 Thread Nordlöw
On Thursday, 19 February 2015 at 14:12:51 UTC, Tobias Pankrath wrote: On Thursday, 19 February 2015 at 11:56:19 UTC, Nordlöw wrote: Please provide reduced examples. This fails: class C { int[] a; alias BH = BinaryHeap!(int[], (x, y) = (x+a y)); } This works: class C { int[] a;

Re: Plan for Exceptions and @nogc?

2015-02-19 Thread deadalnix via Digitalmars-d
On Tuesday, 17 February 2015 at 19:03:49 UTC, Chris Williams wrote: Every throwable function call could be assumed to have a typed result (even void functions) and if, after the return, the caller checks the type and detects that it was an error, bubbles that up, then eventually you get to

Re: GC deadlocks on linux

2015-02-19 Thread ketmar via Digitalmars-d-learn
On Thu, 19 Feb 2015 17:12:02 -0500, Steven Schveighoffer wrote: On 2/19/15 12:01 PM, ketmar wrote: On Thu, 19 Feb 2015 16:33:58 +, Byron Heads wrote: Now I am not sure. This code runs correctly: as i told you before, `fork()` is hard. you can experiment for monthes seeing strange bugs

Are there any 2D games libraries available for D2?

2015-02-19 Thread Kingsley via Digitalmars-d
Hi I'm looking for a 2D games library in D2 similar to gosu from ruby: http://www.libgosu.org/ or ray: https://github.com/Mon-Ouie/ray Does such a thing exist? --K

Re: Coedit alpha 11 released

2015-02-19 Thread Baz via Digitalmars-d-announce
those useless options... the next version have an awesome option editor. about 100 settings just for the editor and the highlither http://imgur.com/RdmHyKJ

Re: Are there any 2D games libraries available for D2?

2015-02-19 Thread Kingsley via Digitalmars-d
I use Dgame which has a really nice and simple interface http://rswhite.de/dgame4/ From the web page: Dgame is a 2D framework which is based on the SDL and OpenGL, and is designed for the D programming language. The design is based on Pygame and as well on the SFML from the C++ programming

[Issue 14192] Access Violation when assigning to shared AA

2015-02-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14192 --- Comment #8 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/2077a7fc4a3842030ef2df7429d0e225242443a0 Merge pull request #4420 from

[Issue 14179] Posix x86_64 varargs prolog clobbers RDX

2015-02-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14179 --- Comment #5 from github-bugzi...@puremagic.com --- Commit pushed to 2.067 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/353cbbed6451f6a21c8d776443db72130c78e879 Merge pull request #4413 from

[Issue 14203] New: Return of floating point values from extern(C++) member functions does not match dmc

2015-02-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14203 Issue ID: 14203 Summary: Return of floating point values from extern(C++) member functions does not match dmc Product: D Version: D2 Hardware: x86 OS: Windows

Re: contiguous ranges

2015-02-19 Thread deadalnix via Digitalmars-d
On Monday, 16 February 2015 at 06:06:19 UTC, Vlad Levenfeld wrote: Since C++17, there's a new iterator category: the contiguous iterator. Check it out: http://en.cppreference.com/w/cpp/iterator So, by extension, I think a ContiguousRange would be any RandomAccessRange which has a member

Re: D : dmd vs gdc : which one to choose?

2015-02-19 Thread ketmar via Digitalmars-d-learn
On Fri, 20 Feb 2015 13:29:09 +1300, Rikki Cattermole wrote: On 20/02/2015 5:08 a.m., ketmar wrote: On Thu, 19 Feb 2015 22:10:11 +1300, Rikki Cattermole wrote: And anyway, GDC is still hasn't been updated to the latest version of D. And its the last major D compiler that hasn't. LDC is

Re: D : dmd vs gdc : which one to choose?

2015-02-19 Thread ketmar via Digitalmars-d-learn
On Fri, 20 Feb 2015 02:08:19 +, ketmar wrote: On Fri, 20 Feb 2015 13:29:09 +1300, Rikki Cattermole wrote: On 20/02/2015 5:08 a.m., ketmar wrote: On Thu, 19 Feb 2015 22:10:11 +1300, Rikki Cattermole wrote: And anyway, GDC is still hasn't been updated to the latest version of D. And

How to make Application bundle from Executable? (Mac)

2015-02-19 Thread Gan via Digitalmars-d-learn
I managed to copy an application bundle and change stuff inside it to run my executable, but it was very manual and kinda hackish. Also I can't get my application to load images that I place in the Resources folder(or any folder in the bundle for that matter). Is there an official way to

Re: Are there any 2D games libraries available for D2?

2015-02-19 Thread extrawurst via Digitalmars-d
On Thursday, 19 February 2015 at 23:32:45 UTC, Kingsley wrote: Hi I'm looking for a 2D games library in D2 similar to gosu from ruby: http://www.libgosu.org/ or ray: https://github.com/Mon-Ouie/ray Does such a thing exist? --K Maybe one of these works for you. ~Stephan

Re: dfmt 0.1.0

2015-02-19 Thread MartinNowak via Digitalmars-d-announce
On Friday, 20 February 2015 at 02:21:01 UTC, Brian Schott wrote: https://github.com/Hackerpilot/dfmt/ https://github.com/Hackerpilot/dfmt/releases/tag/v0.1.0 Congrats, I found the reformatting a bit harsh from time to time, but it's a good opportunity to finally settle style discussions.

Re: vibe-d basic build errors

2015-02-19 Thread MartinNowak via Digitalmars-d-learn
On Friday, 20 February 2015 at 02:50:05 UTC, Charles wrote: Pastebin of dub --vverbose: http://pastebin.com/4BcHJM74 Target vibe-d 0.7.22 is up to date. Use --force to rebuild. Have you tried the --force switch to rebuild vibe.d? Looks like the existing vibe.d lib was build against a

<    1   2