eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingDalej o OO, jezykach itedeRe: Dalej o OO, jezykach itede
  • Path: news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.glorb.com!n
    ews-in-01.newsfeed.easynews.com!easynews!core-easynews-01!easynews.com!en-nntp-
    03.dc1.easynews.com.POSTED!not-for-mail
    From: A.L. <l...@a...com>
    Newsgroups: pl.comp.programming
    Subject: Re: Dalej o OO, jezykach itede
    Message-ID: <h...@4...com>
    References: <q...@4...com>
    <5...@p...googlegroups.com>
    <iod06d$5o5$1@inews.gazeta.pl>
    <9...@p...googlegroups.com>
    <j...@4...com>
    <iof97e$sh1$1@inews.gazeta.pl>
    <0...@4...com>
    <iofh4p$rdg$1@inews.gazeta.pl>
    X-Newsreader: Forte Agent 4.2/32.1118
    MIME-Version: 1.0
    Content-Type: text/plain; charset=ISO-8859-2
    Content-Transfer-Encoding: 8bit
    Lines: 32
    X-Complaints-To: a...@e...com
    Organization: Forte Inc. http://www.forteinc.com/apn/
    X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will
    be unable to process your complaint properly.
    Date: Sun, 17 Apr 2011 16:26:29 -0500
    Xref: news-archive.icm.edu.pl pl.comp.programming:189975
    [ ukryj nagłówki ]

    On Sun, 17 Apr 2011 21:04:41 +0100, Andrzej Jarzabek
    <a...@g...com> wrote:

    >Więc ja spytam tak samo: co ma piernik do wiatraka, czyli to, że
    >"information hiding" jest opisane w publikacji Panasa z tym, czy
    >public/private ma czy nie ma czegoś wspólnego z OO?
    >
    >Jeśli się nie mylę, Simula-67 miała możliwość ukrywania atrybutów klas.
    >Co pisze na ten temat Ole-Johan Dahl:
    >http://www-sst.informatik.tu-cottbus.de/~db/doc/Peo
    ple/Broy/Software-Pioneers/Dahl_new.pdf
    >"The class concept as it was formulated originally was too permissive
    >for the purpose of developing large systems. There was no means of
    >enforcing a programming discipline protecting local class invariants
    >(such as those expressed verbally for the Simulation class example).
    >This was pointed out by Jacob Palme of the Swedish defence research
    >institute. He proposed hiding mechanisms for protecting variable
    >attributes from unauthorised updating. The proposal was approved by the
    >SSG as the last addition ever to the language."
    >[...]
    >"It was Tony Hoare who [...] expressed requirements for the concrete
    >operations to correctly represent the corresponding abstract ones.
    >Clearly, in order to enforce the use of abstract object views, read
    >access to variable attributes would also have to be prevented."

    No i co z tego?... Ukrywanie czegokolwiek nie jest do OO neizbedne,
    ani nei jest wyznacznikiem tego czy cos jest OO czy nie. Rownie nie
    jest niezbedne posiadanie klas czy dziedziczenia.

    A.L.

    P.S. By the way, "information hiding" zostalo dodane w ostatniej
    wersji standardu Simuli

Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj


Następne wpisy z tego wątku

Najnowsze wątki z tej grupy


Najnowsze wątki

Szukaj w grupach

Eksperci egospodarka.pl

1 1 1

Wpisz nazwę miasta, dla którego chcesz znaleźć jednostkę ZUS.

Wzory dokumentów

Bezpłatne wzory dokumentów i formularzy.
Wyszukaj i pobierz za darmo: