Reserved Words and Language Independence
Microsoft’s .NET Common Language Infrastructure (CLI) specification allows code written in 40+ different programming languages to be combined together into a final product. Because of this, identifier/reserved word collisions can occur when code implemented in one language tries to execute code written in another language. For example, a Visual Basic.NET library may contain a class definition such as:
' Class Definition of This in Visual Basic.NET: Public Class this ' This class does something... End ClassIf this is compiled and distributed as part of a toolbox, a C# programmer, wishing to define a variable of type “this
” would encounter a problem: 'this'
is a reserved word in C#. Thus, the following will not compile in C#:
A similar issue arises when accessing members, overriding virtual methods, and identifying namespaces.
In order to work around this issue, the specification allows the programmer to (in C#) place the at-sign before the identifier which forces it to be considered an identifier rather than a reserved word by the compiler.
// Using This Class in C#: @this x = new @this; // Will compile!For consistency, this usage is also permitted in non-public settings such as local variables, parameter names, and private members.
Read more about this topic: Reserved Word
Famous quotes containing the words reserved, words, language and/or independence:
“Parents ability to survive a childs unabating needs, wants, and demands...varies enormously. Some people can give and give....Whether children are good or bad, brilliant or just about normal, enormously popular or born loners, they keep their cool and say just the right thing at all times...even when they are miserable themselves, inexhaustible springs of emotional energy, reserved just for children, keep flowing unabated.”
—Stella Chess (20th century)
“Language is filled
with words for deprivation
images so familiar
it is hard to crack language open
into that other country
the country of being.”
—Susan Griffin (b. 1943)
“Language makes it possible for a child to incorporate his parents verbal prohibitions, to make them part of himself....We dont speak of a conscience yet in the child who is just acquiring language, but we can see very clearly how language plays an indispensable role in the formation of conscience. In fact, the moral achievement of man, the whole complex of factors that go into the organization of conscience is very largely based upon language.”
—Selma H. Fraiberg (20th century)
“The subject of the novel is reality liberated from soul. The reader in complete independence presented with a structured process: let him evaluate it, not the author. The façade of the novel cannot be other than stone or steel, flashing electrically or dark, but silent.”
—Alfred Döblin (18781957)