www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2748] New: -H -o- together should me no semantic phases

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2748

           Summary: -H -o- together should me no semantic phases
           Product: D
           Version: 1.041
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: davidl 126.com


-H -o- combination clearly mean I do not want further compilation phases such
as semantic checks.


-- 
Mar 19 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2748





------- Comment #1 from shro8822 vandals.uidaho.edu  2009-03-19 13:58 -------

template Foo(T)
{
    const char[] Foo = " /// This is a function that takes a "~T.stringof~"
    "~T.stringof~" Bob("~T.stringof~" t)
    {
       return t;
    }
    ";
}

mixin(Foo!(int)); // doesn't work right but I wish it did


-- 
Mar 19 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2748





------- Comment #2 from maxmo pochta.ru  2009-03-20 09:42 -------
(In reply to comment #0)
 -H -o- combination clearly mean I do not want further compilation phases such
 as semantic checks.

not clearly for me. I think, semantic analysis should happen always, there is no point in accepting invalid code. --
Mar 20 2009