Mercurial > projects > dmdscript-tango
comparison dmdscript_tango/ddeclaredfunction.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.ddeclaredfunction; | 22 module dmdscript_tango.ddeclaredfunction; |
23 | 23 |
24 import std.stdio; | 24 //import std.stdio; |
25 import std.c.stdlib; | 25 //import std.c.stdlib; |
26 import tango.stdc.stdlib; | |
27 import tango.io.Stdout; | |
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.dfunction; | 31 import dmdscript_tango.dfunction; |
30 import dmdscript_tango.darguments; | 32 import dmdscript_tango.darguments; |
133 cc.scopex.length); | 135 cc.scopex.length); |
134 } | 136 } |
135 int diff = df.fd.nestDepth - fd.nestDepth; | 137 int diff = df.fd.nestDepth - fd.nestDepth; |
136 if (diff > 0) | 138 if (diff > 0) |
137 { if (diff >= cc.scoperoot) | 139 { if (diff >= cc.scoperoot) |
138 writefln("diff %s cc.scoperoot %s", diff, cc.scoperoot); | 140 Stdout.format("diff {} cc.scoperoot {}", diff, cc.scoperoot); |
141 //writefln("diff %s cc.scoperoot %s", diff, cc.scoperoot); | |
139 else | 142 else |
140 cc.scoperoot -= diff; | 143 cc.scoperoot -= diff; |
141 assert(cc.scoperoot >= 1); | 144 assert(cc.scoperoot >= 1); |
142 } | 145 } |
143 } | 146 } |