Thread overview
Call a DMDScript function from D?
Apr 13, 2005
Jeremy Cowgar
Apr 14, 2005
Jeremy Cowgar
Apr 15, 2005
Jeremy Cowgar
April 13, 2005
Can I do something like:

-------

myscript.ds:

function getName() {
  return "Jeremy";
}

testing.d:

// init script engine
// load "myscript.ds"

char[] name = myscript.call("getName");
printf("Your name is %.*\n", name);

-------

Jeremy
April 13, 2005
Jeremy Cowgar wrote:
> Can I do something like:
> 
> -------
> 
> myscript.ds:
> 
> function getName() {
>   return "Jeremy";
> }
> 
> testing.d:
> 
> // init script engine
> // load "myscript.ds"
> 
> char[] name = myscript.call("getName");
> printf("Your name is %.*\n", name);
> 
> -------
> 
> Jeremy

It's not that simple. Check http://dblinux.sis.epn.edu.ec/~csantand/dmdscript.html for some samples.

-- 
Carlos Santander Bernal

JP2, you'll always live in our minds
April 14, 2005
 > It's not that simple. Check
> http://dblinux.sis.epn.edu.ec/~csantand/dmdscript.html for some samples.
> 

I have not been able to load the URL. At first I thought it might be a temporary problem, but I have checked many times the last day or so w/no luck. Is there another URL?

Jeremy
April 14, 2005
Jeremy Cowgar wrote:
>  > It's not that simple. Check
> 
>> http://dblinux.sis.epn.edu.ec/~csantand/dmdscript.html for some samples.
>>
> 
> I have not been able to load the URL. At first I thought it might be a temporary problem, but I have checked many times the last day or so w/no luck. Is there another URL?
> 
> Jeremy

Sorry about that, I guess the guys at the uni haven't paid the ISP ;). I'll try to upload them to dsource, at least for a little while (unless Brad complains about it).

-- 
Carlos Santander Bernal

JP2, you'll always live in our minds
April 15, 2005
> Sorry about that, I guess the guys at the uni haven't paid the ISP ;). I'll try to upload them to dsource, at least for a little while (unless Brad complains about it).
> 

Not your problem. But did you get a chance to put them on dsource?

Thanks!

Jeremy
April 15, 2005
Jeremy Cowgar wrote:
>> Sorry about that, I guess the guys at the uni haven't paid the ISP ;). I'll try to upload them to dsource, at least for a little while (unless Brad complains about it).
>>
> 
> Not your problem. But did you get a chance to put them on dsource?
> 
> Thanks!
> 
> Jeremy

I'm having trouble with my Internet connection, so I'm sending them to you.

-- 
Carlos Santander Bernal

JP2, you'll always live in our minds
April 19, 2005
Jeremy Cowgar wrote:
> 
> Not your problem. But did you get a chance to put them on dsource?
> 
> Thanks!
> 
> Jeremy

I hope you received them, but I uploaded them over the weekend. They're in http://svn.dsource.org/svn/projects/walnut/downloads/old_things/

-- 
Carlos Santander Bernal

JP2, you'll always live in our minds