D中不必用T.stringof

enum instantiate(string type, string expr) = type ~ "(" ~ expr ~ ")";
pragma(msg, instantiate!("RVector!(SEXPTYPE.REALSXP)", "x"));
posted @ 2021-12-28 10:31  zjh6  阅读(15)  评论(0)    收藏  举报  来源