diff gen/toobj.cpp @ 732:6aeaef263289

Fixed tuple fields, thanx downs
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Mon, 27 Oct 2008 01:11:41 +0100
parents bd56056a581f
children cc8ba72c0350
line wrap: on
line diff
--- a/gen/toobj.cpp	Sun Oct 26 21:18:24 2008 +0100
+++ b/gen/toobj.cpp	Mon Oct 27 01:11:41 2008 +0100
@@ -911,6 +911,24 @@
 
 /* ================================================================== */
 
+void TupleDeclaration::toObjFile(int multiobj)
+{
+    Logger::println("TupleDeclaration::toObjFile(): %s", toChars());
+
+    assert(isexp);
+    assert(objects);
+
+    int n = objects->dim;
+
+    for (int i=0; i < n; ++i)
+    {
+        DsymbolExp* exp = (DsymbolExp*)objects->data[i];
+        exp->s->toObjFile(multiobj);
+    }
+}
+
+/* ================================================================== */
+
 void VarDeclaration::toObjFile(int multiobj)
 {
     Logger::print("VarDeclaration::toObjFile(): %s | %s\n", toChars(), type->toChars());