Calling D from C - What's the present status?

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Sat Jan 20 07:17:37 PST 2007


Bill Baxter wrote:
> Seems like there should be a single handy extern (C) function in phobos 
> to handle that standard startup and shutdown stuff.  I've seen a couple 
> of D programs that do this manually (I think the most recent was one of 
> Kirk's PyD samples).  Is there some reason that stuff can't just be 
> thrown in a single DRuntimeInit / DRuntimeClose pair of functions?

Well, for one thing, the standard wrapper also catches exceptions. 
That's kind of hard to do with a pair of functions. Other than that, I 
don't see a problem with it.

> Tango folks?
> --bb


More information about the Digitalmars-d-learn mailing list