On Tuesday, 13 May 2014 at 07:50:09 UTC, Rikki Cattermole wrote:
On 13/05/2014 7:28 p.m., ed wrote:
I'm porting some C++ code to D and a struct has the following
member:
struct S
{
// ...
//void* (*createMethod)();
void* function() createMethod;
}
I'd like to extend this as little to accep
On 13/05/2014 7:28 p.m., ed wrote:
I'm porting some C++ code to D and a struct has the following member:
struct S
{
// ...
//void* (*createMethod)();
void* function() createMethod;
}
I'd like to extend this as little to accept delegates for future use
without breakage to existing code...
I
I'm porting some C++ code to D and a struct has the following
member:
struct S
{
// ...
//void* (*createMethod)();
void* function() createMethod;
}
I'd like to extend this as little to accept delegates for future
use without breakage to existing code...
Is it possible to template this so