[Issue 3556] New: version(CTFE)
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sat Nov 28 18:04:33 PST 2009
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3556
           Summary: version(CTFE)
           Product: D
           Version: 1.050
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com
--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2009-11-28 18:04:32 PST ---
Until CTFE includes all features of runtime and has 100% same semantics as
runtime (and maybe even after then), there is often a need to have separate
codepaths for ctfe and runtime. A version(CTFE) would be an improvement over
the current solution of making alternate CTFE-intended functions and using a
naming convention to distinguish.
version(CTFE)
{
    // Sacrifice speed, flexibility, or anything else
    // necessary to make this code work via CTFE.
}
else
{
    // Use proper D.
}
-- 
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