www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16965] New: changed.d compile error

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 puremagic.com
          Reporter: rdirective 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

--
Dec 11 2016