Re: Help requested on C++ template syntax (for Emacs development).

2008-06-15 Thread Alan Mackenzie
Hi, Ian! On Tue, Jun 10, 2008 at 12:05:20PM -0700, Ian Lance Taylor wrote: > Ian Lance Taylor <[EMAIL PROTECTED]> writes: > > Alan Mackenzie <[EMAIL PROTECTED]> writes: > >> I'm thinking of things like > >> foo (a < b, c > d); [ ] > Oh, wait, I forgot about constructors. This is val

Re: Help requested on C++ template syntax (for Emacs development).

2008-06-11 Thread Tom Tromey
> "Alan" == Alan Mackenzie <[EMAIL PROTECTED]> writes: Alan> So, the question: is it possible to identify with 100% certainty, PURELY Alan> SYNTACTICALLY (i.e. without access to the compiler's symbol table), Alan> when "< ... >" is a pair of template (C++) or generic (Java) brackets? In Java,

Re: Help requested on C++ template syntax (for Emacs development).

2008-06-10 Thread Ian Lance Taylor
Ian Lance Taylor <[EMAIL PROTECTED]> writes: > Alan Mackenzie <[EMAIL PROTECTED]> writes: > >> I'm thinking of things like >> >> foo (a < b, c > d); >> >> I think this is unambiguously a function call with 2 parameters, the >> expressions "a < b" and "c > d". It cannot be be one with 1 parame

Re: Help requested on C++ template syntax (for Emacs development).

2008-06-10 Thread Ian Lance Taylor
Alan Mackenzie <[EMAIL PROTECTED]> writes: > I'm thinking of things like > > foo (a < b, c > d); > > I think this is unambiguously a function call with 2 parameters, the > expressions "a < b" and "c > d". It cannot be be one with 1 parameter > beginning with the template invocation "a < b , c