Re: alias = compile-time variants?

2010-08-01 Thread Philippe Sigaud
On Sat, Jul 31, 2010 at 21:17, Lutger wrote: > Jason Spencer wrote: > > > == Quote from Philippe Sigaud (philippe.sig...@gmail.com)'s article > >> --0016e6d58a039d35e2048c9aa7e2 > >> > >> I thought they could only be symbols. That is, an alias is a 'link', > > a sort > >> of pointer to a symbol:

Re: alias = compile-time variants?

2010-07-31 Thread Lutger
Jason Spencer wrote: > == Quote from Philippe Sigaud (philippe.sig...@gmail.com)'s article >> --0016e6d58a039d35e2048c9aa7e2 >> >> I thought they could only be symbols. That is, an alias is a 'link', > a sort >> of pointer to a symbol: a template name, a module name, a function >> name, etc. > >

Re: alias = compile-time variants?

2010-07-31 Thread Jason Spencer
== Quote from Philippe Sigaud (philippe.sig...@gmail.com)'s article > --0016e6d58a039d35e2048c9aa7e2 > > I thought they could only be symbols. That is, an alias is a 'link', a sort > of pointer to a symbol: a template name, a module name, a function > name, etc. Whatever confidence you inspired by

Re: alias = compile-time variants?

2010-07-30 Thread Philippe Sigaud
On Thu, Jul 29, 2010 at 22:40, Jason Spencer wrote: > In writing templates that make heavy use of alias parameters, does > anyone else feel uneasy about whether the caller will pass a type, a > value, or a schmoo? I thought they could only be symbols. That is, an alias is a 'link', a sort of po

Re: alias = compile-time variants?

2010-07-29 Thread bearophile
Jason Spencer: > In writing templates that make heavy use of alias parameters, does > anyone else feel uneasy about whether the caller will pass a type, a > value, or a schmoo? Normally D is a mostly statically typed language (objects have a dynamic type), but sometimes template juggling is purel

alias = compile-time variants?

2010-07-29 Thread Jason Spencer
In writing templates that make heavy use of alias parameters, does anyone else feel uneasy about whether the caller will pass a type, a value, or a schmoo? I'm having a hard time getting my head around how wide-open aliases are and trying to resist the urge to put in thousands of static asserts to