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 Identifier
Famous quotes containing the words reserved, words, language and/or independence:
“Damn with faint praise, assent with civil leer,
And, without sneering, teach the rest to sneer;
Willing to wound, and yet afraid to strike,
Just hint a fault, and hesitate dislike;
Alike reserved to blame, or to commend,
A timorous foe, and a suspicious friend;
Dreading een fools, by flatterers besieged,
And so obliging, that he neer obliged;
Like Cato, give his little senate laws,
And sit attentive to his own applause:”
—Alexander Pope (16881744)
“For the Lord thy God is a jealous God among you.”
—Bible: Hebrew Deuteronomy, 6:15.
The words are also found in Exodus 20:5, referring to the second commandment: Thou shalt not make unto thee any graven image ... for I the Lord thy God am a jealous God, visiting the iniquity of the fathers upon the children unto the third and fourth generation of them that hate me.
“The sayings of a community, its proverbs, are its characteristic comment upon life; they imply its history, suggest its attitude toward the world and its way of accepting life. Such an idiom makes the finest language any writer can have; and he can never get it with a notebook. He himself must be able to think and feel in that speechit is a gift from heart to heart.”
—Willa Cather (18731947)
“...there was the annual Fourth of July picketing at Independence Hall in Philadelphia. ...I thought it was ridiculous to have to go there in a skirt. But I did it anyway because it was something that might possibly have an effect. I remember walking around in my little white blouse and skirt and tourists standing there eating their ice cream cones and watching us like the zoo had opened.”
—Martha Shelley, U.S. author and social activist. As quoted in Making History, part 3, by Eric Marcus (1992)