For faster navigation, this Iframe is preloading the Wikiwand page for Eiffel (ohjelmointikieli).

Eiffel (ohjelmointikieli)

Wikipediasta

Eiffel
Paradigma olio-ohjelmointi
Tyypitys vahva, staattinen
Muistinhallinta automaattinen roskienkeräys
Julkaistu 1985

Eiffel on Bertrand Meyerin kehittämä olio-ohjelmointikieli.[1]

Kielen kielioppi on avainsanapohjainen ALGOL:n ja Pascalin tapaan. Eiffel on vahvasti staattisesti tyypitetty. Muistinhallinnassa on automaattinen roskienkeräys.

Eiffelin kehitys on aloitettu vuonna 1985.[1]

Eiffelin tyypillisiä piirteitä ovat sopimuspohjainen ohjelmointi, vapaa perinnän käyttö, geneeriset luokat ja tyyppijärjestelmä, joka hallitsee sekä muuttujien arvoon että muuttujapaikkaan viittaamisen.

Seuraava Eiffel-koodin pätkä alustaa taulukkoni-muuttujan alkiot 0-10 arvoon 0:

   from i := 0 until i >= 10 loop
      taulukkoni.put (0, i)
      i := i + 1
   end

"Hei maailma" -ohjelma Eiffel-kielellä

[muokkaa | muokkaa wikitekstiä]

Seuraavassa on klassinen "hei maailma!" -ohjelma Eiffel-kielellä:

class HEI_MAAILMA
create
   make
feature
   make is
      do
          io.put_string ("Hei, maailma!%N")
      end
end
  1. a b www.eiffel.com eiffel.com. Viitattu 26.7.2017. (englanniksi)

Aiheesta muualla

[muokkaa | muokkaa wikitekstiä]
Käännös suomeksi
Käännös suomeksi
Tämä artikkeli tai sen osa on käännetty tai siihen on haettu tietoja muunkielisen Wikipedian artikkelista.
Tämä tietotekniikkaan liittyvä artikkeli on tynkä. Voit auttaa Wikipediaa laajentamalla artikkelia.
{{bottomLinkPreText}} {{bottomLinkText}}
Eiffel (ohjelmointikieli)
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?