Mercurial > projects > ldc
comparison dmd/arrayop.c @ 1279:04c36605feb9
Fixed array operation codegen when used from imported templates. All array operations are now emitted with template linkage. Fixed #270 .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 29 Apr 2009 18:59:39 +0200 |
parents | b30fe7e1dbb9 |
children | afecdb8ee962 |
comparison
equal
deleted
inserted
replaced
1278:8fb39f7f1a7c | 1279:04c36605feb9 |
---|---|
273 */ | 273 */ |
274 TypeFunction *ftype = new TypeFunction(fparams, type, 0, LINKc); | 274 TypeFunction *ftype = new TypeFunction(fparams, type, 0, LINKc); |
275 //printf("ftype: %s\n", ftype->toChars()); | 275 //printf("ftype: %s\n", ftype->toChars()); |
276 fd = new FuncDeclaration(0, 0, Lexer::idPool(name), STCundefined, ftype); | 276 fd = new FuncDeclaration(0, 0, Lexer::idPool(name), STCundefined, ftype); |
277 fd->fbody = fbody; | 277 fd->fbody = fbody; |
278 fd->protection = PROTprotected; | 278 fd->protection = PROTpublic; |
279 fd->linkage = LINKd; | 279 fd->linkage = LINKd; |
280 | 280 |
281 // special attention for array ops | 281 // special attention for array ops |
282 fd->isArrayOp = true; | 282 fd->isArrayOp = true; |
283 | 283 |