Re: FWD:Re: refactoring

Joel de Guzman <[email protected]>
Newsgroups gmane.comp.documentation.synopsis
Message-ID <[email protected]>
David Abrahams wrote:
> David Abrahams <[email protected]> writes:
>
>>>Joel de Guzman wrote:
>>>>
>>>>It is a fact that in C++, the line between the parser (front end)
>>>>and the compiler (backend) blurs. You need some smarts of the compiler
>>>>to reliably parse C++. The sizeof comes to mind, for example.
>>>>By "compiler", I mean the backend code generator.
>>>
>>>I don't think the backend really comes into play. 
>>
>>Yeah, I think Joel is using the term "backend" to mean "all the
>>semantic analysis," whereas most people mean "platform-specific code
>>generation and optimizations" when they say "backend."
> 
> 
> Err, sorry, I was wrong.  Yes, architecture does come into play, or it
> can. For example, 
> 
>   sizeof(int) == sizeof(long)
> 
> is a compile-time constant that can affect which of two class template
> specializations is chosen, completely altering the types in play, and
> also such things as (member function) overload sets.

Exactly what I had in mind when I said "The sizeof comes to mind,
for example.".

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.