Re: moving wxd to github

2011-11-26 Thread Andrej Mitrovic
I've managed to get StyledTextCtrl compiled and working. I had to add a few missing .obj/.cpp file entries in the DMC makefile for the StyledTextCtrl contrib tree (just a couple of lexer files), but there was also a cyclic import problem in wxd between wx.StyledTextCtrl's and wx.TaskBarIcon's modul

Re: SQL/database server capabilities NO ODBC please

2011-11-26 Thread Steve Teale
On Sat, 26 Nov 2011 15:31:33 -0800, bls wrote: > Hi Steve > First of all : I am sorry about my harsh words within my last reply. --- > I am afraid that this feedback is also not very gentle. > > Picking up ODBC in order to figure out how an generic database Interface > may look like is a very bad

Re: Compile-time Interfaces

2011-11-26 Thread Timon Gehr
On 11/27/2011 02:32 AM, Caligo wrote: It's almost 2012, and people are still using IDE's? =)

Re: SQL/database server capabilities NO ODBC please

2011-11-26 Thread dolive
bls Wrote: > Hi Steve > First of all : I am sorry about my harsh words within my last reply. > --- I am afraid that this feedback is also not very gentle. > > Picking up ODBC in order to figure out how an generic database Interface > may look like is a very bad idea. > > Creating an ODBC Interf

Re: Compile-time Interfaces

2011-11-26 Thread Caligo
It's almost 2012, and people are still using IDE's?

Re: Compile-time Interfaces

2011-11-26 Thread Kapps
On 26/11/2011 7:03 PM, Andrei Alexandrescu wrote: On 11/26/11 6:40 PM, Kapps wrote: auto DoSomething(T)(T Data) if(isInputRange!(T)) { } You could simply do: auto DoSomething(Range Data) { } where Range is defined as: enum interface Range { void popFront() const; @property bool empty() const; @p

Re: Compile-time Interfaces

2011-11-26 Thread Timon Gehr
On 11/27/2011 02:03 AM, Andrei Alexandrescu wrote: On 11/26/11 6:40 PM, Kapps wrote: One of the great things about D is the ability to do so much work at compile-time, including static verification. An example is the amount of constraints available for templates, static ifs, etc. But at some poi

Re: implicit constructors

2011-11-26 Thread Timon Gehr
On 11/27/2011 01:56 AM, Timon Gehr wrote: On 11/27/2011 01:55 AM, Timon Gehr wrote: On 11/27/2011 01:54 AM, Timon Gehr wrote: On 11/27/2011 12:14 AM, Trass3r wrote: anyone? kk. struct A{ struct S{A opAssign(int rhs){return *(cast(A*)&this)=A(rhs);}} union{ struct{ // members int store; } S

Re: Compile-time Interfaces

2011-11-26 Thread Andrei Alexandrescu
On 11/26/11 6:40 PM, Kapps wrote: One of the great things about D is the ability to do so much work at compile-time, including static verification. An example is the amount of constraints available for templates, static ifs, etc. But at some point, it starts getting very problematic to just figur

Re: implicit constructors

2011-11-26 Thread Timon Gehr
On 11/27/2011 01:54 AM, Timon Gehr wrote: On 11/27/2011 12:14 AM, Trass3r wrote: anyone? kk. struct A{ struct S{A opAssign(int rhs){return *(cast(A*)&this)=A(rhs);}} union{ struct{ // members int store; } S _x; // dummy struct } this(int a) { store = a << 16; //... } alias _x this; } void ma

Re: implicit constructors

2011-11-26 Thread Timon Gehr
On 11/27/2011 01:55 AM, Timon Gehr wrote: On 11/27/2011 01:54 AM, Timon Gehr wrote: On 11/27/2011 12:14 AM, Trass3r wrote: anyone? kk. struct A{ struct S{A opAssign(int rhs){return *(cast(A*)&this)=A(rhs);}} union{ struct{ // members int store; } S _x; // dummy struct } this(int a) { store =

Re: implicit constructors

2011-11-26 Thread Timon Gehr
On 11/27/2011 12:14 AM, Trass3r wrote: anyone? kk. struct A{ struct S{A opAssign(int rhs){return *(cast(A*)&this)=A(rhs);}} union{ struct{ // members int store; } S _x; // dummy struct } this(int a) { store = a << 16; //...

Re: Early std.crypto

2011-11-26 Thread Brad Anderson
On Fri, Nov 25, 2011 at 10:31 PM, bcs wrote: > On 11/22/2011 08:16 AM, Piotr Szturmaj wrote: > >> bcs wrote: >> > > How many people in the D community have the experience and know-how to >>> review the security of an implementation? If there are less than 2 or 3 >>> people who can do that, can w

Compile-time Interfaces

2011-11-26 Thread Kapps
One of the great things about D is the ability to do so much work at compile-time, including static verification. An example is the amount of constraints available for templates, static ifs, etc. But at some point, it starts getting very problematic to just figure out what something does, and w

extern(C++) and shared

2011-11-26 Thread deadalnix
I have this function : extern(C++) void* __dsfml_start_thread(EntryPoint entryPoint, void* userData); If EntryPoint is defined as follow : alias extern(C++) void* function(void*) EntryPoint; The function mangle in _Z20__dsfml_start_threadPFPvS_ES_ if alias extern(C++) void* function(shared vo

Re: D Parser in D

2011-11-26 Thread Timon Gehr
On 11/26/2011 09:09 PM, Martin Nowak wrote: On Fri, 25 Nov 2011 19:58:19 +0100, NMS wrote: Is there a D parser written in D? - C strings kill me. Thanks, NMS It's annoying to write one as long as the buffered input range with infinite lookahead problem is not solved by the std library. Ha

Re: D Parser in D

2011-11-26 Thread Martin Nowak
On Sun, 27 Nov 2011 00:05:31 +0100, Trass3r wrote: Is there a D parser written in D? - C strings kill me. It's annoying to write one as long as the buffered input range with infinite lookahead problem is not solved by the std library. What do you need infinite lookahead for? No need to dis

Re: D Parser in D

2011-11-26 Thread Timon Gehr
On 11/27/2011 12:05 AM, Trass3r wrote: Is there a D parser written in D? - C strings kill me. It's annoying to write one as long as the buffered input range with infinite lookahead problem is not solved by the std library. What do you need infinite lookahead for? There are a few places in th

Re: SQL/database server capabilities NO ODBC please

2011-11-26 Thread bls
Hi Steve First of all : I am sorry about my harsh words within my last reply. --- I am afraid that this feedback is also not very gentle. Picking up ODBC in order to figure out how an generic database Interface may look like is a very bad idea. Creating an ODBC Interface at all is pretty usele

Re: implicit constructors

2011-11-26 Thread Trass3r
anyone?

Re: D Parser in D

2011-11-26 Thread Trass3r
Is there a D parser written in D? - C strings kill me. It's annoying to write one as long as the buffered input range with infinite lookahead problem is not solved by the std library. What do you need infinite lookahead for?

Re: Phobos Wish List/Next in Review Queue?

2011-11-26 Thread Walter Bright
On 11/26/2011 5:46 AM, Steven Schveighoffer wrote: Ranges are not good for reading N bytes from a file descriptor. Why not? Isn't that exactly what a range is supposed to be good for?

Re: Doom3 (id tech 4) port/binding in D ?

2011-11-26 Thread Paulo Pinto
Am 25.11.2011 00:33, schrieb Somedude: Le 25/11/2011 00:14, Andrej Mitrovic a écrit : I remember reading this ages ago: http://fabiensanglard.net/quakeSource/index.php Besides there has already been a FPS written in D, and that hasn't had much effect on the gaming community either. The gammi

Re: Announcement list for breaking language changes?

2011-11-26 Thread Paul D. Anderson
Martin Nowak Wrote: > I just thought it would be useful to announce breaking changes, new > warnings and deprecations > added to the D language (dmd, druntime, phobos) in a separate mailing list. > It can be also used to discourage from using certain constructs. > > Some examples: > --- > dmd >

Re: D Parser in D

2011-11-26 Thread Martin Nowak
On Fri, 25 Nov 2011 19:58:19 +0100, NMS wrote: Is there a D parser written in D? - C strings kill me. Thanks, NMS It's annoying to write one as long as the buffered input range with infinite lookahead problem is not solved by the std library.

Re: Open MPI with D

2011-11-26 Thread Brad Roberts
On Saturday, November 26, 2011 5:40:27 AM, Max Samukha wrote: > On 11/25/2011 09:34 PM, Andrei Alexandrescu wrote: > >> Oh, I see. Thanks for enlightening me. So apparently I defined those >> variables... >> >> Andrei >> > > Could you or Walter add some information about extern vs extern(C) to the

Announcement list for breaking language changes?

2011-11-26 Thread Martin Nowak
I just thought it would be useful to announce breaking changes, new warnings and deprecations added to the D language (dmd, druntime, phobos) in a separate mailing list. It can be also used to discourage from using certain constructs. Some examples: --- dmd >= 2.056 New Warning for dangling el

Re: [std.database]

2011-11-26 Thread Kagamin
Steve Teale Wrote: > > It can be done using concepts: a template which instantiates to a set of > > static asserts about what you want. > > Is that what we do with Ranges? Range concepts are boolean. There was a discussion on how to get detailed diagnostic if concept is not met, so that one wou

Re: [std.database]

2011-11-26 Thread Steve Teale
On Fri, 25 Nov 2011 12:53:36 -0500, Kagamin wrote: > Steve Teale Wrote: > >> So one question is where should such implementations go? > > github? Well, probably yes, but that sounds a bit like "if you build it they will come", which doesn't always work. > >> Another questions relates to the d

Re: D Parser in D

2011-11-26 Thread Trass3r
Is there a D parser written in D? - C strings kill me. https://github.com/azizk/dil Most complete one I think.

Re: Phobos Wish List/Next in Review Queue?

2011-11-26 Thread Steven Schveighoffer
On Wed, 23 Nov 2011 21:26:45 -0500, Walter Bright wrote: On 11/19/2011 7:02 PM, dsimcha wrote: * Streams. (Another item where the bottleneck is mostly at the design level and people not really knowing what they want.) I'm not sure what the purpose of streams would be, now that we have

Re: Open MPI with D

2011-11-26 Thread Max Samukha
On 11/25/2011 09:34 PM, Andrei Alexandrescu wrote: Oh, I see. Thanks for enlightening me. So apparently I defined those variables... Andrei Could you or Walter add some information about extern vs extern(C) to the docs?