Native D functions & Assembler modules
    Don Clugston 
    dac at nospam.com.au
       
    Tue Feb 21 00:51:30 PST 2006
    
    
  
Alexander Panek wrote:
> Hello,
> 
> I'm asking myself for a few days now if it'd be possible to call native 
> D functions (without "extern(C)") directly out of an assembler module 
> (compiled with nasm, for example). As far as I know D has a little 
> different function naming convention than C, so it would be interesting 
> if there's a static definition of how native functions are named.
import std.stdio;
// put your function here...
char [] f(int a, Whatever w)
{
}
void main()
{
     writefln( f.mangleof);
}
> 
> I didn't find any information on the official D site, so I thought it'd 
> be a good idea to ask in the newsgroup so Walter or some uber-mighty D 
> coder could have a chance to answer.
> 
> Thanks in advance and regards,
> Alex
    
    
More information about the Digitalmars-d
mailing list