Thread overview | ||||||
---|---|---|---|---|---|---|
|
June 18, 2011 dmdscript osx.mak | ||||
---|---|---|---|---|
| ||||
Attachments:
| Hello, I apologize if this is the wrong forum to post this question, but I couldn't find a corresponding learn mailing list for DMDScript. I wanted to play around with DMDScript but cant seem to get started. I downloaded the source and attempted to make it via: $ make -f osx.mak But I get the following error: textgen.d(132): Error: cannot implicitly convert expression ~ some string ~ of type string to char[] Am I doing the right thing? Or how do I go about getting building 'ds' so I can run simpleton scripts? Josh |
June 18, 2011 Re: dmdscript osx.mak | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joshua Niehus | On 18/06/2011 07:35, Joshua Niehus wrote: > Hello, > > I apologize if this is the wrong forum to post this question, but I > couldn't find a corresponding learn mailing list for DMDScript. > > I wanted to play around with DMDScript but cant seem to get started. I > downloaded the source and attempted to make it via: > $ make -f osx.mak > > But I get the following error: > textgen.d(132): Error: cannot implicitly convert expression ~ some > string ~ of type string to char[] > Am I doing the right thing? Or how do I go about getting building 'ds' > so I can run simpleton scripts? > > Josh dmdscript is designed for D1, you're using D2. Someone has updated dmdscript for D2, there's an announcement on digitalmars.D.announce about it somewhere. Using that version will fix your issues. -- Robert http://octarineparrot.com/ |
June 18, 2011 Re: dmdscript osx.mak | ||||
---|---|---|---|---|
| ||||
Posted in reply to Robert Clipsham | On 18/06/2011 21:50, Robert Clipsham wrote: > On 18/06/2011 07:35, Joshua Niehus wrote: >> Hello, >> >> I apologize if this is the wrong forum to post this question, but I >> couldn't find a corresponding learn mailing list for DMDScript. >> >> I wanted to play around with DMDScript but cant seem to get started. I >> downloaded the source and attempted to make it via: >> $ make -f osx.mak >> >> But I get the following error: >> textgen.d(132): Error: cannot implicitly convert expression ~ some >> string ~ of type string to char[] >> Am I doing the right thing? Or how do I go about getting building 'ds' >> so I can run simpleton scripts? >> >> Josh > > dmdscript is designed for D1, you're using D2. Someone has updated > dmdscript for D2, there's an announcement on digitalmars.D.announce > about it somewhere. Using that version will fix your issues. > http://dsource.org/projects/dmdscript-2/wiki <= there you go. I should probably note that if you plan on doing anything serious, you'd be better off writing a D wrapper for V8 or one of the other modern javascript engines. -- Robert http://octarineparrot.com/ |
June 18, 2011 Re: dmdscript osx.mak | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joshua Niehus | On 18.06.2011 10:35, Joshua Niehus wrote: > Hello, > > I apologize if this is the wrong forum to post this question, but I couldn't find a corresponding learn mailing list for DMDScript. > > I wanted to play around with DMDScript but cant seem to get started. I downloaded the source and attempted to make it via: > $ make -f osx.mak > > But I get the following error: > textgen.d(132): Error: cannot implicitly convert expression ~ some string ~ of type string to char[] > Am I doing the right thing? Or how do I go about getting building 'ds' so I can run simpleton scripts? > > Josh It's pretty much like Robert says: original source for DMDscript is for D1 and wasn't update for quite some time. Still the D2 port should work with no problems. And even though I did it in the first place, the only benefit of it right now is that it's written in D and thus could be integrated with D projects slightly better. Still if you are up for some hacking give it a try. As for speed, yeah, it's something like around 20-200x slower at various workloads (e.g. numerics in JavaScript and such), so wouldn't recommend if you have performance in mind. -- Dmitry Olshansky |
Copyright © 1999-2021 by the D Language Foundation