Re: c++ interpreter

From: Phlip (phlip_cpp_at_yahoo.com)
Date: 04/06/04


Date: Mon, 5 Apr 2004 16:32:29 -0700

Buster wrote:

> [Re. other replies.] OK, you got me. But what I'm trying to get at is
> that quote - "C++ can't use this feature" - what's that about? There are
> syntax errors in C++.

Consider object.method(), where method does not exist yet. The Java
perspective in the Eclipse editor can underline "method" in pink, the same
way a word processor indicates misspelled words.

A C++ perspective couldn't do that because a #define may have screwed with
object or method. Only a real compilation can find syntax errors. Compilers
tune to quickly compile a lot of code - not to instantly compile one file,
just to find its syntax errors. So C++ (presently) cannot use advanced
syntax highlighting to provide the earliest possible feedback.

-- 
  Phlip
    http://www.xpsd.org/cgi-bin/wiki?TestFirstUserInterfaces


Relevant Pages

  • Re: Syntax errors in somobj.h
    ... I can't seem to compile successfully. ... My first attempt at compiling CAR also fails but in a slightly ... My build does not find any syntax errors in somobj.h. ... My build fails with a failure in RC.EXE. ...
    (comp.os.os2.programmer.misc)
  • Re: constructor problem
    ... > i am having a problem with costructors ... Unfortunately, the code that you posted is incomplete, and doesn't ... compile because it's riddled with syntax errors. ...
    (comp.lang.java.help)
  • Re: example needed: sip + Qt
    ... > What syntax errors? ... I am currently fiddling around with the QLabel example. ... attempt to compile the original hello.cpp sources. ... tried creating a normal object file, then libtool archives and then normal ...
    (comp.lang.python)
  • SNMPing
    ... MOM, but is more network, WMI and OS oriented. ... to compile them. ... SMI2SMIR adds objects to the namespace ... there are syntax errors ...
    (microsoft.public.win32.programmer.wmi)
  • SNMPing
    ... questions about compiling MIB's on Windows Server 2003 (even 2000 will ... do) and using traps for alert notification in MOM 2005. ... to compile them. ... there are syntax errors ...
    (microsoft.public.win2000.networking)