February 10, 2009 General » Variable references in strings (Was: Structs implementing interfaces in D1) | |||
|---|---|---|---|
| |||
...res ~= res ~= "\n\treturn cast(${iface})cast(void*)&_iface_${iface}_vtbl;";
Much nicer and understandable... | |||
February 10, 2009 General » Structs implementing interfaces in D1 | |||
|---|---|---|---|
| |||
...n ~ iface ~ " as" ~ iface ~ "() {";
res ~= \n\t"return cast("~iface~")cast(void*)&_iface_" ~ iface ~ "_vtbl... | |||
April 15, 2008 Issues » [Issue 1996] New: is ( Type Identifier : TypeSpecialization ) deduction error with inheritance | |||
|---|---|---|---|
| |||
...derived via inheritance from the template.
-----
module iface_specialize;
abstract class ACFoo(T)
{
void init... | |||
December 03, 2007 Learn » Faking constructors! An overview of object layout. | |||
|---|---|---|---|
| |||
...begging the question.
auto ptr = iface.classinfo.vtbl[0];
*(_this + (iface.offset / (void*).sizeof)) = ptr... | |||
February 13, 2007 General » Re: Object and interface compatibility | |||
|---|---|---|---|
| |||
...to make sure:
Object o = cast(Object)iface;
if (o) {
// it's a D object... | |||
November 14, 2006 General » Re: object - interface compatibility | |||
|---|---|---|---|
| |||
...there a way to make class and iface really compatible? 3.) Please document this very... | |||
November 14, 2006 General » object - interface compatibility | |||
|---|---|---|---|
| |||
...had a hard lesson to learn. An iface and an object is not exchangeable. The... | |||
May 25, 2006 General » Mangled names | |||
|---|---|---|---|
| |||
...Interface iface; clazz.interfaces) {
// should return the mangled name
if(derivesFromIBase(iface)) return iface.classinfo... | |||
August 10, 2005 General » revised version of my ioctl interface module for linux | |||
|---|---|---|---|
| |||
...0x89100,//get iface name SIOCSIFLINK =0x8911,//set iface channel SIOCGIFCONF =0x8912,//get iface list SIOCGIFFLAGS... | |||
July 21, 2005 General » ioctl module for linux | |||
|---|---|---|---|
| |||
...iface name const int SIOCSIFLINK =0x8911;//set iface channel const int SIOCGIFCONF =0x8912;//get iface... | |||
Copyright © 1999-2021 by the D Language Foundation