DMDScript

Chris via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 14 03:34:33 PDT 2014


On Sunday, 13 July 2014 at 07:18:38 UTC, Jason King wrote:
> On Friday, 11 July 2014 at 15:45:42 UTC, Chris wrote:
>> Tried to compile on linux, got this error message (I guess I 
>> can fix it):
>>
>> dmd -c textgen.d
>> textgen.d(36): Error: cannot implicitly convert expression 
>> ("DMDScript fatal runtime error: ") of type string to char[]
> .. bunch more errors.
>
> You might try
> https://github.com/DmitryOlshansky/DMDScript which, according 
> to it's notes has changes to make it compatible with D2.

Just tried this. First, I had to replace import std.ctype; with 
import core.stdc.ctype. No big deal, but now I get this

make -fposix.mak
dmd -lib -O -release -inline  -d  dmdscript/darguments.d 
dmdscript/darray.d dmdscript/dboolean.d dmdscript/ddate.d 
dmdscript/ddeclaredfunction.d dmdscript/derror.d 
dmdscript/dfunction.d dmdscript/dglobal.d dmdscript/dmath.d 
dmdscript/dnative.d dmdscript/dnumber.d dmdscript/dobject.d 
dmdscript/dregexp.d dmdscript/dstring.d dmdscript/errmsgs.d 
dmdscript/expression.d dmdscript/functiondefinition.d 
dmdscript/identifier.d dmdscript/ir.d dmdscript/irstate.d 
dmdscript/iterator.d dmdscript/lexer.d dmdscript/opcodes.d 
dmdscript/parse.d dmdscript/program.d dmdscript/property.d 
dmdscript/date.d dmdscript/dateparse.d dmdscript/datebase.d 
dmdscript/protoerror.d dmdscript/RandAA.d dmdscript/scopex.d 
dmdscript/outbuffer.d dmdscript/script.d dmdscript/statement.d 
dmdscript/symbol.d dmdscript/text.d dmdscript/regexp.d 
dmdscript/threadcontext.d dmdscript/utf.d dmdscript/value.d  
dmdscript/extending.d -ofdmdscriptlib.a
dmdscript/dregexp.d(487): Error: function 
dmdscript.dregexp.Dregexp.Call multiple overrides of same function
dmdscript/dobject.d(47): Error: cannot take address of 
thread-local variable foo at compile time
make: *** [dmdscriptlib.a] Error 1

My idea is to use (at least test) DMDScript for server side JS.


More information about the Digitalmars-d-learn mailing list