Welcome to the guided tour of the tutorial!
All the classes in the tutorial are provided with your SmartEiffel installation, in the
|Table of contents|
Hello world... To execute the program, go to the
SmartEiffel/tutorial directory and execute the command:
se c HELLO_WORLD make -o hello
The meaning of the command is
|the front-end tool for the SmartEiffel compiler|
|the tool invoked by |
|the class of which an object is created (you may also write it in lower-case, or use its filename with the |
|the creation procedure of the |
|generates an executable with the name hello (linux) or hello.exe (windows)|
The command produces an executable, usually
hello.exe depending on the system. After compiling is finished, you can run the executable.
This unavoidable program is in
hello_world.e and lets you grasp the basic concepts of Eiffel. Those concepts are:
- Everything is a class. In Eiffel, outside classes there is no salvation.
- The program starts by creating an object. Here, the method is the
makecreation feature in the class
- Each file is named after the name of the class it contains, in lower-case, with the
- Note the special object
iothat allows you to write text on the standard output. We will see that it also lets you read data.
- For the Eiffel syntax, look here.
- pyramide.e and pyramide2.e
To compile the other samples you must modify the compiler command.
Some important concepts
including iterator and sorting
To go further
... and tuples
Date & time