www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16275] New: final functions allowed

https://issues.dlang.org/show_bug.cgi?id=16275

          Issue ID: 16275
           Summary: final functions allowed
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: v vladde.net

Defining a function (not method) as final works.

//>> final function
final int foo()
{
  return 40 + 2;    
}
//<<

--
Jul 13 2016