www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3148] New: syntax error using invariant

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3148

           Summary: syntax error using invariant
           Product: D
           Version: unspecified
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: ddparnell bigpond.com


In std/outbuffer.d the class OutBuffer is missing the "()" after the
"invariant" keyword.

Patch ...
--- c:/temp/d/std/outbuffer.d    Sun Jul  5 01:19:02 2009
+++ c:/temp/d/std/outbuffer.dx    Tue Jul  7 18:07:09 2009
   -39,7 +39,7   
     ubyte data[];
     uint offset;

-    invariant
+    invariant()
     {
     //printf("this = %p, offset = %x, data.length = %u\n", this, offset,
data.length);
     assert(offset <= data.length);

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 07 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3148


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |andrei metalanguage.com
         AssignedTo|nobody puremagic.com        |andrei metalanguage.com




-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 07 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3148


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED





23:48:00 PDT ---
Thanks!

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