Summary: cross alias  namespace can't be resolve
           Product: D
           Version: unspecified
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from galaxylang <> 2010-05-02 02:43:55 PDT 
//restrictly speakin, it's a language feature,not a bug
//The cross reference namespace can't be resolve in two level way?

//D can support it?

class Token
class KeyWord(string V):Token

class Seq(T...)
class Any(T...)
class And(T...)
class List(T)

alias Token    TkID;

alias KeyWord!("+")    TkAdd;
alias KeyWord!("-")    TkSub;
alias KeyWord!("(")    TkLeftBracket;
alias KeyWord!(")")    TkRightBracket;
alias Any!(TkAdd,TkSub)        TkAddSub;

alias TkID    Invoker;
alias TkID    ExpConst;

//hereļ¼Œreport error ,ExpUnary is alias follow
alias List!ExpUnary    ExpList;

alias Seq!(Invoker,TkLeftBracket,ExpList,TkRightBracket) ExpFunc;

alias Any!(TkID,ExpConst,ExpFunc)        ExpUnary;

alias Seq!(ExpUnary,TkAddSub,ExpUnary)    ExpAddSub;

void main(string[] args)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to