synchronization + nothrow

2012-10-20 Thread denizzzka
How I can synchronize changing of array in the functions with nothrow? Handmade spinlock or something better?

override toString of Exception

2012-10-20 Thread David
class BraLaException : Exception { this(string s, string f=__FILE__, size_t l=__LINE__) { super(s, f, l); } override string toString() { return bar; } } when throwing this exception, I still get the stacktrace and not bar, is it possible to change that

Re: override toString of Exception

2012-10-20 Thread Jacob Carlborg
On 2012-10-20 18:42, David wrote: class BraLaException : Exception { this(string s, string f=__FILE__, size_t l=__LINE__) { super(s, f, l); } override string toString() { return bar; } } when throwing this exception, I still get the stacktrace and not

SFML-D working example

2012-10-20 Thread Zhenya
Hi!I have a little problem with building example.I downloaded SFML-D working example at this adress https://github.com/krzat/SFML-D/downloads.But then I tried to build it myself,I received many errors like that: Symbol Undefined

Reflection: is type an inner class

2012-10-20 Thread Tyler Jameson Little
Say I have something like this: class A { class B { } B b; } Right now, I have a loop that does something like this (taken from orange project): foreach (i, type; typeof(A.tupleof)) { enum name = A.tupleof[i].stringof[1 + A.stringof.length + 2 ..

Re: Reflection: is type an inner class

2012-10-20 Thread Tyler Jameson Little
I got it working using compiles: A a = new A; foreach (i, type; typeof(A.tupleof)) { enum name = A.tupleof[i].stringof[1 + A.stringof.length + 2 .. $]; static if (__traits(compiles, mixin(A. ~ type.stringof))) { mixin(a. ~ name) = a.new type; } else

Re: SFML-D working example

2012-10-20 Thread Ellery Newcomer
On Saturday, 20 October 2012 at 20:25:09 UTC, Zhenya wrote: Hi!I have a little problem with building example.I downloaded SFML-D working example at this adress https://github.com/krzat/SFML-D/downloads.But then I tried to build it myself,I received many errors like that: Symbol Undefined

Re: Reflection: is type an inner class

2012-10-20 Thread Andrej Mitrovic
On 10/21/12, Tyler Jameson Little beatgam...@gmail.com wrote: Say I have something like this: class A { class B { } B b; } I can't find a way to figure out if the inner type is static or not. If it's static you don't need the outer class to instantiate

Re: Reflection: is type an inner class

2012-10-20 Thread Tyler Jameson Little
I hope this isn't a double post, I'm posting from the web ui. I got this working using __traits(compiles): A a = new A; static if (is(A == class)) { alias TypeTuple!(A, BaseClassesTuple!A) Types; } else { alias TypeTuple!A Types; } foreach (BT; Types) {

Re: Reflection: is type an inner class

2012-10-20 Thread Jonathan M Davis
On Sunday, October 21, 2012 05:39:54 Andrej Mitrovic wrote: On 10/21/12, Tyler Jameson Little beatgam...@gmail.com wrote: Say I have something like this: class A { class B { } B b; } I can't find a way to figure out if the inner type is static or not. How about checking

Re: Reflection: is type an inner class

2012-10-20 Thread Tyler Jameson Little
On Sunday, 21 October 2012 at 03:40:15 UTC, Andrej Mitrovic wrote: On 10/21/12, Tyler Jameson Little beatgam...@gmail.com wrote: Say I have something like this: class A { class B { } B b; } I can't find a way to figure out if the inner type is static or

Re: Reflection: is type an inner class

2012-10-20 Thread Andrej Mitrovic
On 10/21/12, Jonathan M Davis jmdavisp...@gmx.com wrote: How about checking whether it has an outer property? outer could be a user-defined property/enum.

Deimos organization

2012-10-20 Thread Matt Soucy
I've been messing around with Deimos lately, and I was a little bit confused about some of the design. I saw that a couple (ZeroMQ, ncurses) didn't follow the usual structure of having a c/ and a deimos/ folder. Is this by design, or is it something that should be remedied? Other things I was