Thread overview
[Issue 5858] New: Import not acctept const string as arguments
Apr 19, 2011
changlon
Apr 20, 2011
Walter Bright
Apr 23, 2011
Walter Bright
April 19, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5858

           Summary: Import not acctept const string as arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: changlon@gmail.com


--- Comment #0 from changlon <changlon@gmail.com> 2011-04-18 17:48:18 PDT ---
It working on 2.052 rlease,  in the git master branch it throw error .
-----------------------------------------------------
static const string file = "test_file.d" ;
auto da    = import(file);
void main(){}
------------------------------------------------------
test.d(2): Error: file name argument must be a string, not (file)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 20, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5858


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |FIXED


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2011-04-19 17:13:05 PDT ---
https://github.com/donc/dmd/commit/ec2f03a5870f64124b839418d78f08b8902ba48e

https://github.com/D-Programming-Language/dmd/commit/9cc85248d6c13bce7de032f0407e0bd2c52e347c

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 23, 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5858



--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2011-04-23 15:51:12 PDT ---
https://github.com/D-Programming-Language/dmd/commit/da0159d02d0e4ecb7ad1afa4bc6da402e677846f

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------