Author:halw

Date:2010-09-02T21:47:38.000000Z


git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@672 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
halw
2010-09-08 02:40:08 +00:00
parent a9346b1fdd
commit 699b1dd852
4 changed files with 5 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

View File

@@ -0,0 +1,3 @@
title=static documentation page
author=halw
path=content/static-documentation-page

View File

@@ -4,7 +4,7 @@
[[Property:uuid|e5f003f6-c732-c648-fd67-91f6642130f0]]
It is possible to download the books of the Eiffel online documentation for viewing offline with a web browser.
To do this you use a [http://docs.eiffel.com/static/ web page] which has links to downloadable files which contain the documentation in different forms and quantities.
To do this you use a [http://docs.eiffel.com/static/ web page] which has links to downloadable files that contain copies of the documentation in different forms and quantities.
[[Image:static documentation page|Downloadable documentation]]

View File

@@ -125,7 +125,7 @@ This type of feature call is known as an '''object call''' because it applies th
circumference := radius * 2.0 * {MATH_CONST}.Pi
</code>
In the sample above, the call to feature <code>{MATH_CONST}.Pi</code> is a non-object call. This case illustrates one of the primary uses of non-object calls. Because of non-object calls, constants do not have to be part of a shared object or features inherited by the classes that use them.
In the sample above, the call to feature <code>{MATH_CONST}.Pi</code> is a non-object call. This case illustrates one of the primary uses of non-object calls: constants. The library class <code>MATH_CONST</code> contains commonly used mathematical constants. Non-object calls make it possible to use the constants in <code>MATH_CONST</code> without having to create an instance of <code>MATH_CONST</code> or inherit from it.
The other primary use is for external features. One example is when we use Microsoft .NET classes from Eiffel code and have to access mechanisms for which there is no direct analog in Eiffel. Microsoft .NET supports so-called "static" methods and enumeration types. To access these, we use non-object calls. In the example below, a non-object call is used to access the enumeration <code lang="text">CreateNew</code> from the .NET enumeration type <code lang="text">System.IO.FileMode</code>.