mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-07 23:32:42 +01:00
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:
Binary file not shown.
|
After Width: | Height: | Size: 59 KiB |
@@ -0,0 +1,3 @@
|
||||
title=static documentation page
|
||||
author=halw
|
||||
path=content/static-documentation-page
|
||||
@@ -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]]
|
||||
|
||||
@@ -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>.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user