Re: Is there a weak pointer or references in D?

2013-01-11 Thread Nekroze
On Friday, 11 January 2013 at 22:07:45 UTC, monarch_dodra wrote: Honest question: How can you have a weak pointer in a language that is garbage collected? I beleive the OP means something like pythons weakref (http://docs.python.org/2/library/weakref.html) that is qoute: A weak reference to

Update Some Bindings (LLVM)

2012-12-23 Thread Nekroze
Now that llvm-3.2 (http://llvm.org/) has been released I would like to use the llvm-c bindings from within D. I have found that the most up to date d bindings we seem to have are llvm-3.0 (http://dsource.org/projects/bindings/browser/trunk/llvm-3.0). Does anyone know how these bindings where m

Re: Multidimensional slice

2012-12-19 Thread Nekroze
On Wednesday, 19 December 2012 at 16:19:28 UTC, Rafael wrote: Yes, it is good solution, thank you! But anyway it means not so nice and laconic syntax.. P.S. yes, I am killjoy :) Awesome, glad i could help even with my limited knowledge, good luck, don't understand the PS.

Re: Multidimensional slice

2012-12-19 Thread Nekroze
On Wednesday, 19 December 2012 at 14:08:25 UTC, Rafael wrote: On Wednesday, 19 December 2012 at 13:28:24 UTC, Nekroze wrote: On Wednesday, 19 December 2012 at 12:27:32 UTC, Rafael wrote: 1) It is possible to implement multiindex access using opIndex* methods, moreover this is the simplest way

Re: Multidimensional slice

2012-12-19 Thread Nekroze
On Wednesday, 19 December 2012 at 13:34:52 UTC, John Chapman wrote: opIndex/opIndexAssign take multiple indices. http://dlang.org/operatoroverloading.html#Array Yes however i believe the OP also wants to provide multiple slices as well as multiple indices. Atleast as far as i can tell.

Re: Multidimensional slice

2012-12-19 Thread Nekroze
On Wednesday, 19 December 2012 at 12:27:32 UTC, Rafael wrote: 1) It is possible to implement multiindex access using opIndex* methods, moreover this is the simplest way to multiindex access realization. So, we have [i, j, k] notation. Next step after it - slices implementation and it looks logi

Re: Multidimensional slice

2012-12-19 Thread Nekroze
On Wednesday, 19 December 2012 at 10:33:38 UTC, Rafael wrote: On Wednesday, 19 December 2012 at 10:25:23 UTC, Rafael wrote: On Wednesday, 19 December 2012 at 10:17:28 UTC, Nekroze wrote: On Wednesday, 19 December 2012 at 09:58:37 UTC, Rafael wrote: //Then I want to do something like x = S[0

Re: Multidimensional slice

2012-12-19 Thread Nekroze
On Wednesday, 19 December 2012 at 09:58:37 UTC, Rafael wrote: //Then I want to do something like x = S[0..$, 1]; //get column S[0..$, 2] = A[0..$, 2]; //get and set column auto B = A[0..10, 0..10]; //get submatrix block of matrix A Warning the following is my total noob opinion. Instead of usi

Re: Googling about D

2012-12-18 Thread Nekroze
On Tuesday, 18 December 2012 at 09:47:24 UTC, egslava wrote: I don't program with D a lot, but when I try to find information in google, I use that way: "dlang something". And google very often tries to change it to "slang something" :) But I think, today, it's the best way. Because you can't lo

Re: Derelict SFML destructor crashes

2012-12-17 Thread Nekroze
On Monday, 17 December 2012 at 14:06:30 UTC, Mike Parker wrote: Now what i was thinking as a solution, would it be possible to manually run the GC cleanup pass at the end of main this way we know that the GC cleanup would run before main exits and thus sfml gets unloaded. Although i believe thi

Re: Derelict SFML destructor crashes

2012-12-17 Thread Nekroze
On Monday, 17 December 2012 at 12:08:29 UTC, Nekroze wrote: Now what i was thinking as a solution, would it be possible to manually run the GC cleanup pass at the end of main this way we know that the GC cleanup would run before main exits and thus sfml gets unloaded. Although i believe this

Re: Derelict SFML destructor crashes

2012-12-17 Thread Nekroze
On Monday, 17 December 2012 at 10:56:23 UTC, Jeremy DeHaan wrote: Does that mean that putting some form of delete in a struct destructor will be called to delete contents or is that still considered unsafe? And why don't classes have the same guarantee? Is it because they are a reference typ

Re: Derelict SFML destructor crashes

2012-12-16 Thread Nekroze
On Monday, 17 December 2012 at 04:42:49 UTC, Mike Parker wrote: On Monday, 17 December 2012 at 04:40:39 UTC, Mike Parker wrote: First, please take all Derelict trouble-shooting problems to the Derelict forums[1]. I never check the sfml forums. I do check the newsgroups regularly, but these news

Re: Derelict SFML destructor crashes

2012-12-16 Thread Nekroze
On Sunday, 16 December 2012 at 17:14:55 UTC, Maxim Fomin wrote: On Sunday, 16 December 2012 at 15:21:46 UTC, Nekroze wrote: On Sunday, 16 December 2012 at 14:59:32 UTC, Maxim Fomin wrote: On Sunday, 16 December 2012 at 14:42:57 UTC, Nekroze wrote: I am trying to do some wrapping of the CSFML

Re: Derelict SFML destructor crashes

2012-12-16 Thread Nekroze
On Sunday, 16 December 2012 at 15:21:46 UTC, Nekroze wrote: On Sunday, 16 December 2012 at 14:59:32 UTC, Maxim Fomin wrote: On Sunday, 16 December 2012 at 14:42:57 UTC, Nekroze wrote: I am trying to do some wrapping of the CSFML derelict bindings to classes however when i use the CSFML methods

Re: Derelict SFML destructor crashes

2012-12-16 Thread Nekroze
On Sunday, 16 December 2012 at 14:59:32 UTC, Maxim Fomin wrote: On Sunday, 16 December 2012 at 14:42:57 UTC, Nekroze wrote: I am trying to do some wrapping of the CSFML derelict bindings to classes however when i use the CSFML methods to destroy the objects it causes a crash. I have made a

Re: Cross Compiler Lniux to Win32

2012-12-15 Thread Nekroze
On Saturday, 15 December 2012 at 19:46:11 UTC, Johannes Pfau wrote: Am Sat, 15 Dec 2012 14:56:47 +0100 schrieb "Nekroze" : On Saturday, 15 December 2012 at 13:42:11 UTC, r_m_r wrote: > On 12/15/2012 06:35 PM, Nekroze wrote: >> So straight up, is DMD capable of cross

Re: Cross Compiler Lniux to Win32

2012-12-15 Thread Nekroze
On Saturday, 15 December 2012 at 13:42:11 UTC, r_m_r wrote: On 12/15/2012 06:35 PM, Nekroze wrote: So straight up, is DMD capable of cross compiling on linux targeting windows? I have never used the alternative D compilers (GDC, LDC etc) but are they capable of this perhaps? You can try

Re: Cross Compiler Lniux to Win32

2012-12-15 Thread Nekroze
On Saturday, 15 December 2012 at 13:05:32 UTC, Nekroze wrote: I have been thinking about starting a project recently to using llvm to make a little toy compiler however I quite dislike mingw and such on windows so was going to build a gcc cross compiler and try to make it so I can code and

Cross Compiler Lniux to Win32

2012-12-15 Thread Nekroze
I have been thinking about starting a project recently to using llvm to make a little toy compiler however I quite dislike mingw and such on windows so was going to build a gcc cross compiler and try to make it so I can code and compile my win32 compiler (the compiler will be an exe and the cod

Re: Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Nekroze
On Thursday, 6 December 2012 at 22:26:07 UTC, Rainer Schuetze wrote: On 06.12.2012 23:14, Nekroze wrote: On Thursday, 6 December 2012 at 22:06:43 UTC, Rainer Schuetze wrote: On 06.12.2012 23:00, Nekroze wrote: On Thursday, 6 December 2012 at 21:28:38 UTC, Rainer Schuetze wrote: On

Re: Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Nekroze
On Thursday, 6 December 2012 at 22:06:43 UTC, Rainer Schuetze wrote: On 06.12.2012 23:00, Nekroze wrote: On Thursday, 6 December 2012 at 21:28:38 UTC, Rainer Schuetze wrote: On 06.12.2012 22:03, Nekroze wrote: Ok so I have the need to make a static library that will be reused in multiple

Re: Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Nekroze
On Thursday, 6 December 2012 at 21:28:38 UTC, Rainer Schuetze wrote: On 06.12.2012 22:03, Nekroze wrote: Ok so I have the need to make a static library that will be reused in multiple future projects. My thinking was that in future solutions i can just add an existing project, my static

Visual D - Solution with Static Lib and Console App.

2012-12-06 Thread Nekroze
Ok so I have the need to make a static library that will be reused in multiple future projects. My thinking was that in future solutions i can just add an existing project, my static library project, so it would grab it and just work. However i cannot seem to get it to work. I have a solution

Re: Windows program instant crash: no messages.

2012-06-12 Thread Nekroze
OK, another update to the original download link. I have gotten initDarkGDK to pass and it gets all the way down to handing the screen over to DarkGDK using the wrapper function dbOpenScreen but fails after that. I guess then my problem is in the wrapper function or in the actual template th

Re: Windows program instant crash: no messages.

2012-06-12 Thread Nekroze
On Tuesday, 12 June 2012 at 09:03:43 UTC, Andrew Wiley wrote: On Tue, Jun 12, 2012 at 1:50 AM, Andrew Wiley wrote: On Tue, Jun 12, 2012 at 1:32 AM, Dmitry Olshansky wrote: On 12.06.2012 11:17, Nekroze wrote: Hello. I am trying to make a wrapper to use the DarkGDK 3d game engine for

Windows program instant crash: no messages.

2012-06-12 Thread Nekroze
of moving from python to D. Thank you for your time, Nekroze.