Mercurial > projects > dmdscript-tango
comparison dmdscript_tango/dfunction.d @ 4:6d905019f7bf
some changes
author | saaadel |
---|---|
date | Thu, 28 Jan 2010 21:23:27 +0200 |
parents | 8363a4bf6a8f |
children |
comparison
equal
deleted
inserted
replaced
3:8363a4bf6a8f | 4:6d905019f7bf |
---|---|
19 */ | 19 */ |
20 | 20 |
21 | 21 |
22 module dmdscript_tango.dfunction; | 22 module dmdscript_tango.dfunction; |
23 | 23 |
24 import std.string; | 24 //import std.string; |
25 import std.c.stdlib; | 25 //import std.c.stdlib; |
26 import tango.stdc.stdlib; | |
27 import tango.text.convert.Format; | |
26 | 28 |
27 import dmdscript_tango.script; | 29 import dmdscript_tango.script; |
28 import dmdscript_tango.dobject; | 30 import dmdscript_tango.dobject; |
29 import dmdscript_tango.value; | 31 import dmdscript_tango.value; |
30 import dmdscript_tango.protoerror; | 32 import dmdscript_tango.protoerror; |
316 { | 318 { |
317 // Native overrides of this function replace Identifier with the actual name. | 319 // Native overrides of this function replace Identifier with the actual name. |
318 // Don't need to do parameter list, though. | 320 // Don't need to do parameter list, though. |
319 d_string s; | 321 d_string s; |
320 | 322 |
321 s = std.string.format("function %s() { [native code] }", name); | 323 s = Format("function {}() {{ [native code] }", name); |
324 //s = std.string.format("function %s() { [native code] }", name); | |
322 return s; | 325 return s; |
323 } | 326 } |
324 | 327 |
325 void *HasInstance(Value* ret, Value* v) | 328 void *HasInstance(Value* ret, Value* v) |
326 { | 329 { |