Delphi 8 and reserved words

Posted: (EET/GMT+2)

 

I continued my quest to learn ASP.NET with Delphi 8 today, and was checking the properties of the HttpRequest class.

This class has the property called Browsers, which in turn is of the type System.Web.Mobile.MobileCapabilities. This MobileCapabilities class has a property named Type, which returns the type of the browser that the client identifies itself to be.

Now, "Type" is a reserved word in Delphi. First, I though this restriction had been bypassed in Delphi 8, but I was wrong: the compiler complained that a property cannot be accessed as it is a reserved word.

First, I was at loss. But a bit googling gave me the answer: if a Delphi reserved word happens to be a property or method name, one can prefix the reserved with with the ampersand sign & like this:

S := Request.Browser.&Type;

This is all clear, but where in the language guide of Delphi 8 is this stated, I wonder?