Trying to compile this code:
[B]Error in file "n_space.hla" at line 10

Syntax error.
Near: << namespace >>[/B]
Posted on 2003-02-04 03:37:32 by clone-d

Trying to compile this code:
[B]Error in file "n_space.hla" at line 10

Syntax error.
Near: << namespace >>[/B]



That's reasonable.
Namespaces are only legal at the global level.
You can't embed them in records, classes, unions, or even other
namespaces (there are some implementation reasons that prevent this;
but the big deal that prevents it is the hash table lookup I added a few
versions ago).

Also note that you cannot nest type declarations inside a class.

Records and unions, btw, only allow things that are legal in a VAR
declaration section.

Randy Hyde
Posted on 2003-02-04 17:30:59 by rhyde