win32 capCreateCaptureWindow problem

2009-08-11 Thread Ivan Boritsky
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); i get this error: Error: undefined identifier capCreateCaptureWindow my compile comman is: dmd webcam.d gdi32.lib advapi32.lib

Re: win32 capCreateCaptureWindow problem

2009-08-11 Thread Jarrett Billingsley
On Tue, Aug 11, 2009 at 6:10 PM, Ivan Boritskynibble...@gmx.com 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); i get this error: Error: undefined identifier

'static' keyword for positional array initialization

2009-08-11 Thread Ali Cehreli
The 'static' keyword is required by dmd 2.031 for the second of these two definitions: int[2] static_0 = [ 1, 1 ]; static int[2] static_1 = [ 1:1 ]; Is this inconsistency by design? Should 'static' be required for both or neither? Ali

Is [ 0, 1, 2 ] an immutable array?

2009-08-11 Thread Ali Cehreli
Does the expression [ 0, 1, 2 ] form an immutable array? If so, is the assignment to a[0] undefined below? Is it trying to modify an immutable element? int[] a = [ 0, 1, 2 ]; a[0] = 42; The reason for my thinking that [ 0, 1, 2] is an array is because it has the .dup property and this

ignored phobos request

2009-08-11 Thread Saaa
Some time ago I requested something on .D, but it was ignored. I'm interested in why this is so. It was only a small request, maybe not fitting for .D but dsourse/phobos said that was the place for such things. (Maybe it was unintelligible again?) --- Could an option be added to the formatting

overloading

2009-08-11 Thread Ellery Newcomer
Why is function overloading not applied to nested functions?