www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dmdscript osx.mak

reply Joshua Niehus <jm.niehus gmail.com> writes:
--00151773dba80d3a9804a5f6b4a7
Content-Type: text/plain; charset=ISO-8859-1

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

--00151773dba80d3a9804a5f6b4a7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<div><br></div><div>I apologize if this is the wrong forum to post th=
is question, but I couldn&#39;t find a corresponding learn mailing list for=
 DMDScript.</div><div><br></div><div>I wanted to play around with DMDScript=
 but cant seem to get started. =A0I downloaded the source and attempted to =
make it via:</div>
<div>=A0 =A0 $ make -f osx.mak</div><div><br></div><div>But I get the follo=
wing error:=A0</div><div>=A0 =A0 textgen.d(132): Error: cannot implicitly c=
onvert expression ~ some string ~ of type string to char[]</div><div>=A0</d=
iv><div>
Am I doing the right thing? Or how do I go about getting building &#39;ds&#=
39; so I can run simpleton scripts?</div><div><br></div><div>Josh =A0</div>

--00151773dba80d3a9804a5f6b4a7--
Jun 17 2011
next sibling parent reply Robert Clipsham <robert octarineparrot.com> writes:
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/
Jun 18 2011
parent Robert Clipsham <robert octarineparrot.com> writes:
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/
Jun 18 2011
prev sibling parent Dmitry Olshansky <dmitry.olsh gmail.com> writes:
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
Jun 18 2011