www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13290] New: rdmd --eval ignores flags and program args


          Issue ID: 13290
           Summary: rdmd --eval ignores flags and program args
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: tools
          Assignee: nobody puremagic.com
          Reporter: nilsbossung googlemail.com

rdmd -debug '--eval=debug {} else assert(false);'
core.exception.AssertError /tmp/.rdmd-1000/eval.ED67B51406C6E567FF8177C457A624FE.d(18):
Assertion failure

rdmd '--eval=assert(args[1] == "arg");' arg
core.exception.RangeError /tmp/.rdmd-1000/eval.962D23261531997F463C287790029FAE.d(18):
Range violation

Pull request is on the way.

Aug 13 2014