Online Eiffel Documentation
EiffelStudio

Using Eiffel (to write ASP.NET pages)

Inheritance

Eiffel handles inheritance in a different way than most languages. In C# or VB.NET the behavior of a newly introduced member in a class hierarchy is defined as part of the member declaration itself (for example C# will precede the member declaration with the keyword override to accomplish the same result as an Eiffel redefine clause). In Eiffel, classes are equipped with an inheritance clause which centralizes all the feature adaptations.

As a result, Eiffel for ASP.NET introduces inheritance snippets. Each Eiffel ASP.NET page may include at most one inheritance snippet. Such a snippet must start with the inherit keyword and may then list any valid Eiffel feature adaptation.

String and Array Manifest Constants

The Eiffel language supports using manifest constants in source code. The type of these constants is inferred by the Eiffel compiler. There are two manifest constant types that require special attention on .NET: string and array. Because the Eiffel and the .NET types differ, writing code using string or array manifest constants requires additional care.

Compilation and Timeouts

Eiffel compilations can take longer than the default timeouts set in ASP.NET. In particular ASP.NET will run batch compilations on the entire directory that is being accessed by IIS each time the time stamp of that directory changes. If the batch compilation takes longer than the batchTimeout property defined in the machine wide configuration file (machine.config) then ASP.NET will start another compilation just for the requested file. This can be quite resource intensive for the Web server and thus it might be beneficial to increase the default value of 15 seconds for batchTimeout.

See also: Names Mapping