On 2012-11-16 05:26, jerro wrote:
I don't know whether the language could be changed to support code like:struct Foo(){} Foo foo; but doing that certainly would introduce some ambiguities. For example, consider this line: alias Foo Bar; Should Bar be a template or an instance of a template here?
Any place where a template and an instantiation is allowed it will default to a template. The user would then need to explicitly add !() to indicate an instantiation. In all other places, it will be an instantiation.
I think in most cases using just a template is not allowed. -- /Jacob Carlborg
