digitalmars.D - ABI specs for in / out / inout parameters?
- Jarrett Billingsley (11/11) Jul 25 2004 the ABI docs are (understandably) unfinished. but just out of curiosity...
the ABI docs are (understandably) unfinished. but just out of curiosity,
how are in / out / inout parameters handled? are they sort of "implied
pointers", like we have with class references?
the reason i ask, is that this function compiles:
extern(C) void blah(inout int x)
{
x++;
}
i'm not sure if the compiler does any checks for "illegal" code in functions
that use C linkage, but what would happen if i used this function in C? or
rather, HOW would i use this function in C?
Jul 25 2004








"Jarrett Billingsley" <kb3ctd2 yahoo.com>