Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2003

Show
Ignore:
Timestamp:
04/06/07 17:40:29 (2 years ago)
Author:
larsivi
Message:

Workaround for static ctor in template issue with GDC, should fix link errors in #383

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/text/convert/Sprint.d

    r1758 r2003  
    5757 
    5858        alias format            opCall; 
    59  
    60         /********************************************************************** 
    61  
    62                 Create a global formatter, used as a default for new 
    63                 Sprint instances 
    64                  
    65         **********************************************************************/ 
    66  
    67         static this () 
    68         { 
    69                 global = new Layout!(T); 
    70         } 
    71          
     59        
    7260        /********************************************************************** 
    7361 
     
    7967        this (int size = 256) 
    8068        { 
     69                // Workaround for bug with static ctors in GDC 
     70                if (global is null) 
     71                    global = new Layout!(T); 
    8172                this (size, global); 
    8273        }