On 29/03/10 19:30, Adam D. Ruppe wrote:
On Mon, Mar 29, 2010 at 06:49:35PM +0100, Robert Clipsham wrote:
I haven't played with dmdscript, but
I'd guess there's a simple way to expose D functions to it.

It isn't terribly complex, but it is a bit wordy. The docs are
here: http://www.digitalmars.com/dscript/extending.html

You have to make your function in a certain convention, then
register it using a struct and a function.

The function convention gives you the most access to the script
environment, but it is a pain to write all your functions that way.

You could always write a nice wrapper function/template which automatically does all that guff for you :) If you do, I'm sure Walter wouldn't mind adding it into dmdscript providing you license it appropriately :)

I'm pretty sure user defined attributes aren't in for D2, it looks like
it'll be D3 or later if/when we get them.

Indeed. But everyone on this group needs /some/ wish feature
to bring up at every opportunity, right? :-P

Agreed :) Guess I need to go and sit in a corner until I think of a feature, then I can come back to the group a true D user :P

Reply via email to