[Issue 3390] [tdpl] out(result) contract should not be able to rebind result

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 19 04:13:14 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=3390


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2009-10-19 04:13:13 PDT ---
PATCH: Why not just make 'result' const?

// func.c, line 1030.

           v = new VarDeclaration(loc, type->nextOf(), outId, NULL);
               v->noauto = 1;
#if DMDV2
+               v->storage_class |= STCconst;
               if (f->isref)
               {
                   v->storage_class |= STCref | STCforeach;
               }
#endif

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list