www.digitalmars.com         C & C++   DMDScript  

DMDScript - Call a DMDScript function from D?

reply Jeremy Cowgar <jeremy __no__spAM__cowgar.com> writes:
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
Apr 12 2005
parent reply "Carlos Santander B." <csantander619 gmail.com> writes:
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
Apr 13 2005
parent reply Jeremy Cowgar <jeremy __no__spAM__cowgar.com> writes:
  > 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
Apr 14 2005
parent reply "Carlos Santander B." <csantander619 gmail.com> writes:
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
Apr 14 2005
parent reply Jeremy Cowgar <jeremy __no_spam__.cowgar.cooooom> writes:
 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
Apr 15 2005
next sibling parent "Carlos Santander B." <csantander619 gmail.com> writes:
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
Apr 15 2005
prev sibling parent "Carlos Santander B." <csantander619 gmail.com> writes:
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
Apr 18 2005