On Tue, May 15, 2018 at 10:50:23PM -0400, Richard Stallman wrote:
> * functions
> * variables not in global scope
I'm not sure how to understand "not in global scope".
Could you clarify that?
I mean a varible which is not local to a function, and is not declared static.
Anyway, entities in C include functions, file-scope structures,
file-scope unions, file-scope variables, and macros. In C++ they
would also include class definitions -- and is there anything else?
I hadn't thought about c++ much. classes are not a problem. They are just
special cases of structs. However things like templates can make the
parsing rather tricky.
In most cases, an entity is a maximal syntactic construct.
However, if something is not maximal but has an
openbrace in column zero, it is also an entity.
I don't know what the term "maximal syntactic construct" means. Can
you explain.
J'
--
Avoid eavesdropping. Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature
