spec: What is the definition of a symbol?

Paul Backus snarwin at gmail.com
Fri Nov 20 21:14:53 UTC 2020


On Friday, 20 November 2020 at 19:03:30 UTC, Dibyendu Majumdar 
wrote:
> The language spec uses the term symbol but I don't think this 
> term is defined anywhere.
>
> What would be the best way to define it (other than saying it 
> is a symbol in symbol table in the compiler)?

A symbol is a name that refers to some entity in the program--a 
module, a package, a type, a function, a variable, a template, or 
an `enum` constant. (I think that's the complete list.)


More information about the Digitalmars-d mailing list