Hm.. so I tried another approach, which would be to send the type
name as a string, then use Object.factory to instantiate that (ugly,
but whatever). Had a few problems with that, then just reduced it to
a non-thread case:
import std.stdio;
immutable interface BasicType {
}
immutable class SubT
On Sat, Dec 10, 2011 at 1:38 PM, Jonathan M Davis wrote:
> On Saturday, December 10, 2011 17:30:50 Adam wrote:
>> Hrm... that's a bit problematic. If I do use the exact match, it seems
>> to hang / lock up (probably the lack of support for classes?).
>> However, that's pretty much never the case o
On Saturday, December 10, 2011 17:30:50 Adam wrote:
> Hrm... that's a bit problematic. If I do use the exact match, it seems
> to hang / lock up (probably the lack of support for classes?).
> However, that's pretty much never the case of what I want to do, since
> what I'm trying to do involves pas
Hrm... that's a bit problematic. If I do use the exact match, it seems
to hang / lock up (probably the lack of support for classes?).
However, that's pretty much never the case of what I want to do, since
what I'm trying to do involves passing / accepting an interface and
its implementations.
I gu
On Saturday, December 10, 2011 06:38:19 Adam wrote:
> Okie, having some trouble trying to do matches against classes /
> interfaces with templates using the std.concurrency's receive()
> function.
>
> Here's a simple use case I have:
>
> import std.stdio;
> import std.concurrency;
> import std.va