www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17910] New: Can't have UFCS in aggregate types


          Issue ID: 17910
           Summary: Can't have UFCS in aggregate types
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: dfj1esp02 sneakemail.com

struct A
  void f()
    SecBuffer b;
    b.clear(); //fail
  import core.sys.windows.sspi;
  static void clear(ref SecBuffer sb)
alias clear=A.clear;

It is undesirable to declare extension methods at global scope if they use
local imports.

Oct 17 2017