Signed-off-by: Jean Privat <jean@pryen.org>
# limitations under the License.
# A simple exemple of refinement where a method is added to the integer class.
-package fibonacci
+module fibonacci
redef class Int
# Calculate the self-th element of the fibonacci sequence.
# limitations under the License.
# How to print arguments of the command line.
-package print_arguments
+module print_arguments
for a in args do
print a
# A procedural program (without explicit class definition).
# This program manipulates arrays of integers.
-package procedural_array
+module procedural_array
# The sum of the elements of `a'.
# Uses a 'for' control structure.