[Issue 16965] New: changed.d compile error

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Dec 11 04:45:13 PST 2016


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

          Issue ID: 16965
           Summary: changed.d compile error
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: tools
          Assignee: nobody at puremagic.com
          Reporter: rdirective at gmail.com

Created attachment 1624
  --> https://issues.dlang.org/attachment.cgi?id=1624&action=edit
screenshot of compile state after change

changed.d(77): Error: variable changed.getIssues.closedRE : Unable to
initialize enum with class or pointer to struct. Use static const variable
instead.

I edited line 77
enum closedRE = ctRegex!(`((close|fix|address)e?(s|d)? )?(ticket|bug|tracker
item|issue)s?:? *([\d ,\+&#and]+)`, "i");

changed enum to static const
static const closedRE = ctRegex!(`((close|fix|address)e?(s|d)?
)?(ticket|bug|tracker item|issue)s?:? *([\d ,\+&#and]+)`, "i");

This compiled but I do not know if this is good since I am new to D

--


More information about the Digitalmars-d-bugs mailing list