Re: deleting items from 2d arrays

2009-08-13 Thread Daniel Keep
Michael P. wrote: > Okay, so I'm making a breakout type game in D. Using Derelict. > I have a 2d array of Block type variables(not important what's in them) > declared like this: > Block[][] level; > and later load into like this: > level = loadLevel( "levels.txt", levelNumber ); > Anyways, what

Re: deleting items from 2d arrays

2009-08-13 Thread Jarrett Billingsley
On Thu, Aug 13, 2009 at 10:59 PM, Michael P. wrote: > Okay, so I'm making a breakout type game in D. Using Derelict. > I have a 2d array of Block type variables(not important what's in them) > declared like this: > Block[][] level; > and later load into like this: > level = loadLevel( "levels.txt"

deleting items from 2d arrays

2009-08-13 Thread Michael P.
Okay, so I'm making a breakout type game in D. Using Derelict. I have a 2d array of Block type variables(not important what's in them) declared like this: Block[][] level; and later load into like this: level = loadLevel( "levels.txt", levelNumber ); Anyways, what I want to do is that when the bal

Re: win32 capCreateCaptureWindow problem

2009-08-13 Thread Sam Hu
John C Wrote: > Sam Hu Wrote: > > > John C Wrote: > > > > > Ivan Boritsky wrote: > > > > i work on a win32 application. i try to access my web camera. > > > > when i use this api funtion; > > > > capCreateCaptureWindow("cam", WS_VISIBLE + WS_CHILD, 10, 10,266, 252, > > > > hWnd, 0); > > > > >

Re: Semi Automated Object wrapping

2009-08-13 Thread bearophile
Bill Baxter: > ret ~= "\t$ReturnType!(t).stringof splitFuncs(methodstr)[i](" > It would at least look a bit nicer than > ret ~= "\t"~ReturnType!(t).stringof ~" "~splitFuncs(methodstr)[i]~"("; > with all the ~" "~ everywhere. Currently you can do (I think it doesn't work well in D2 now): i

Re: x has forward references

2009-08-13 Thread Jacob Carlborg
On 8/13/09 17:01, Spacen Jasset wrote: Hello, trying to use deteclit with the latest version of dmd 1.047 and I get this error. I don't understand what it means: derelict\freetype\fttypes.d(827): Error: struct derelict.freetype.fttypes.FT_RasterRec has forward references line 97: alias FT_R

Re: Semi Automated Object wrapping

2009-08-13 Thread Rory McGuire
On Fri, 14 Aug 2009 00:16:39 +1000, Daniel Keep wrote: > Bill Baxter wrote: >> On Thu, Aug 13, 2009 at 12:43 AM, Rory McGuire >> wrote: >>> On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: >>> On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire wrote: > Here is some code I wrote whic

x has forward references

2009-08-13 Thread Spacen Jasset
Hello, trying to use deteclit with the latest version of dmd 1.047 and I get this error. I don't understand what it means: derelict\freetype\fttypes.d(827): Error: struct derelict.freetype.fttypes.FT_RasterRec has forward references line 97: alias FT_RasterRec* FT_Raster; line 827

Re: Semi Automated Object wrapping

2009-08-13 Thread Daniel Keep
Bill Baxter wrote: > On Thu, Aug 13, 2009 at 12:43 AM, Rory McGuire wrote: >> On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: >> >>> On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire >>> wrote: Here is some code I wrote which enables wrapping a proxy around an object. I am using it f

Re: "waking up" a thread

2009-08-13 Thread Steven Schveighoffer
On Thu, 13 Aug 2009 02:59:39 -0400, funog wrote: Steven Schveighoffer Wrote: On Wed, 12 Aug 2009 13:00:22 -0400, funog wrote: > Is there a way to make the current thread sleep for a given amount of > time, while having the possibility of another thread "waking it up" > earlier? Create a mu

Re: Semi Automated Object wrapping

2009-08-13 Thread Bill Baxter
On Thu, Aug 13, 2009 at 12:43 AM, Rory McGuire wrote: > On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: > >> On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire >> wrote: >>> Here is some code I wrote which enables wrapping a proxy around an >>> object. I am using it for my serialization library.

Re: win32 capCreateCaptureWindow problem

2009-08-13 Thread John C
Sam Hu Wrote: > John C Wrote: > > > Ivan Boritsky wrote: > > > i work on a win32 application. i try to access my web camera. > > > when i use this api funtion; > > > capCreateCaptureWindow("cam", WS_VISIBLE + WS_CHILD, 10, 10,266, 252, > > > hWnd, 0); > > > > That should be: WS_VISIBLE | WS_CHI

Re: Semi Automated Object wrapping

2009-08-13 Thread Rory McGuire
On Wed, 12 Aug 2009 17:03:17 -0700, Bill Baxter wrote: > On Wed, Aug 12, 2009 at 4:52 PM, Rory McGuire > wrote: >> Here is some code I wrote which enables wrapping a proxy around an >> object. I am using it for my serialization library. It works in >> D1(1.046) and D2 (2.031) >> >> Posting it here

Re: "waking up" a thread

2009-08-13 Thread funog
Steven Schveighoffer Wrote: > On Wed, 12 Aug 2009 13:00:22 -0400, funog wrote: > > > Is there a way to make the current thread sleep for a given amount of > > time, while having the possibility of another thread "waking it up" > > earlier? > > Create a mutex/condition pair, then have one th