Beginner

article

Agents versus Adapters

This really applies to all incarnations in all languages of higher order functions in Object Oriented languages.

article

Why doesn't it work?

I start using I/O in eiffel, and my first program doesn't work.


	make
	local
      input : PLAIN_TEXT_FILE
      output : PLAIN_TEXT_FILE
      internal : ARRAY[CHARACTER]
      i, j : INTEGER
    do
      io.putstring ("Welcome to file-io land!

article

Passback variable performance comparison

These tests test the allocation performance of 3 passback variable options and the subsequent access time when retrieving the value back from the calling function.

The difficulty in a general solution arises with void safety.

article

Trouble with array of linked_list elements

I represent an adjacency list of graph G(V,E).

article

The rescue clause does not work

I've tested the system by an example of exception handling in Eiffel

 <eiffel>
feature {NONE} -- Initialization
	i:INTEGER
	x:REAL
	y:ARRAY[REAL]
	make
			-- Run application.
		do
			create y.make(1,2)
			io.put_string ("The item at position: ")
			io.read_integer
			i:=io.last_integer
			find
			io.put_string (" is: ")
			io.put_real (x)
			io.put_string ("%NReturn to make i

article

Attachment in creation features with exceptions

This is a short template of what one can do when dealing with the perfect storm of complication using attached variables. This issue can arise when you need to attempt to release a resource, e.g.

article

How to get the output of a command using EiffelProcess

This is a quite basic but essential operation: Launch a command, and get its output in a string.

There are various solutions.

  • One is to redirect the output to a temporary file, and then read its content. But this is not convenient, since it require disk access, and you can not always hide the process.
article

Eiffel for Rubyists

After several months programming with Ruby scripting language, and related libraries, I got quite used to the intensive use of iterators and blocks (closures) that give Ruby programs a particular coding flavour.

article

Eiffel exceptions

A common question asked about Eiffel, especially those coming from Java or C# backgrounds is, where's my try...catch...finally block?

article

Getting Started with Db4o for Eiffel

This page provides a step-by-step guide, showing you how to use db4o databases within Eiffel for .NET applications.

Step 1: Download Db4o Assembly

Because of a critical bug in the db4o assemblies before version 7.1.26 (see the issue report "SODA queries return wrong query results for .NET interfaces"), it is important that you download a db4o v

Syndicate content