Re: Sudoku Py / C++11 / D?

2012-08-15 Thread Ed McCardell
On 08/15/2012 03:01 AM, Era Scarecrow wrote: Not Golfed? I don't recognize that term. I don't see the python source off hand, but I don't understand python anyways. It refers to code golf, where you try to solve a problem with the smallest program possible (one-letter variable names, no

Re: deimos libX11 undefined reference

2012-07-15 Thread Ed McCardell
On 07/11/2012 07:50 PM, cal wrote: On Wednesday, 11 July 2012 at 23:18:25 UTC, cal wrote: I'm using the deimos libX11 bindings, DMD 2.058 OpenSUSE x86_64. In Xlibint.d, my linker can't resolve '_XData16' (it's proto is on line 624 of Xlibint). Does anyone who knows X11 know what library I

Template constraint and specializations

2012-03-23 Thread Ed McCardell
Is there a way to write a template constraint that matches any specialization of a given type? For example can the following be done without having to write out every combination of feature1 and feature2: class Foo(bool feature1, bool feature2) { ... } void useFoo(T)(T foo) if (is(T

Re: Template constraint and specializations

2012-03-23 Thread Ed McCardell
On 03/23/2012 04:14 AM, Andrej Mitrovic wrote: On 3/23/12, Ed McCardelledmcc...@hotmail.com wrote: Is there a way to write a template constraint that matches any specialization of a given type? Nope. But there are simple workarounds: class Foo(bool feature1, bool feature2) { enum _isFoo =