Re: incomprehensible return error bug?

2010-01-24 Thread g
g Wrote: > strtr Wrote: > > > strtr Wrote: > > > > > This error also points to the enum which is probably incorrectly used > > > somewhere > > > s_def(32) Error: cannot implicitly convert expression (5) of type int to S > > > > > > Still searching for the original bug btw :( > > > > Found it,

Re: incomprehensible return error bug?

2010-01-24 Thread g
strtr Wrote: > strtr Wrote: > > > This error also points to the enum which is probably incorrectly used > > somewhere > > s_def(32) Error: cannot implicitly convert expression (5) of type int to S > > > > Still searching for the original bug btw :( > > Found it, also a return type mismatch pro

Re: incomprehensible return error bug?

2010-01-24 Thread strtr
strtr Wrote: > This error also points to the enum which is probably incorrectly used > somewhere > s_def(32) Error: cannot implicitly convert expression (5) of type int to S > > Still searching for the original bug btw :( Found it, also a return type mismatch problem; returning a enum member wh

Re: incomprehensible return error bug?

2010-01-24 Thread strtr
strtr Wrote: > enum { A = 0, B, C } > > void func(){ return A; } > > void main() > { > } > > main.d(1): Error: long has no effect in expression (0) > > Is this a bug? This error also points to the enum which is probably incorrectly used somewhere s_def(32) Error: cannot implicitly convert exp

incomprehensible return error bug?

2010-01-24 Thread strtr
enum { A = 0, B, C } void func(){ return A; } void main() { } main.d(1): Error: long has no effect in expression (0) Is this a bug?

Re: D2 __gshared and compatibility with D1

2010-01-24 Thread Mike Wey
On 01/24/2010 05:13 PM, Stanislav Blinov wrote: Hello, As some of you might know, there is a great package for D called Derelict (Derelict2 now actually). It provides bindings for several interesting C libraries like SDL, OpenGL and FreeType. The key point of Derelict is that it is designed to w

D2 __gshared and compatibility with D1

2010-01-24 Thread Stanislav Blinov
Hello, As some of you might know, there is a great package for D called Derelict (Derelict2 now actually). It provides bindings for several interesting C libraries like SDL, OpenGL and FreeType. The key point of Derelict is that it is designed to work exclusively with dynamic libraries. To ac