overloading of [] for derefence operation should be possible now
This commit is contained in:
parent
e5eb36e472
commit
958961bd8d
3 changed files with 31 additions and 5 deletions
|
|
@ -772,8 +772,8 @@ proc genEcho(p: BProc, n: PNode) =
|
|||
for i in countup(1, n.len-1):
|
||||
initLocExpr(p, n.sons[i], a)
|
||||
appf(args, ", ($1)->data", [rdLoc(a)])
|
||||
appcg(p, cpsStmts, "printf(\"" & repeatStr(n.len-1, "%s") &
|
||||
"\\n\"$1);$n", [args])
|
||||
appcg(p, cpsStmts, "printf($1$2);$n", [
|
||||
makeCString(repeatStr(n.len-1, "%s") & tnl), args])
|
||||
|
||||
proc genCall(p: BProc, t: PNode, d: var TLoc) =
|
||||
var op, a: TLoc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue