eGospodarka.pl
eGospodarka.pl poleca

eGospodarka.plGrupypl.comp.programmingCo ma Objective-C czego nie ma C++?Re: Co ma Objective-C czego nie ma C++?
  • 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-
    13.dc1.easynews.com.POSTED!not-for-mail
    From: A.L. <l...@a...com>
    Newsgroups: pl.comp.programming
    Subject: Re: Co ma Objective-C czego nie ma C++?
    Message-ID: <4...@4...com>
    References: <4ddbc4e2$0$2460$65785112@news.neostrada.pl>
    <8...@4...com>
    <irh5ol$rdh$1@inews.gazeta.pl>
    <1...@4...com> <irie50$43t$1@solani.org>
    X-Newsreader: Forte Agent 4.2/32.1118
    MIME-Version: 1.0
    Content-Type: text/plain; charset=utf-8
    Content-Transfer-Encoding: 8bit
    Lines: 72
    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: Wed, 25 May 2011 09:03:12 -0500
    Xref: news-archive.icm.edu.pl pl.comp.programming:190691
    [ ukryj nagłówki ]

    On Wed, 25 May 2011 08:20:48 +0000 (UTC), "Stachu 'Dozzie' K."
    <d...@g...eat.some.screws.spammer.invalid> wrote:

    >On 2011-05-24, A.L <l...@a...com> wrote:
    >[...]
    >> No dobrze, ale co ma to wspolnego z MODELEM OBIEKTOWOSCI?...
    >
    >A.L., podaj po prostu przykład języka o innym modelu obiektowości niż
    >pochodzący z Simuli. Wtedy twoi rozmówcy będą widzieli o czym mówisz.

    Prosze bardzo. Ada na przyklad. Ackolwiek specyfikacja jezyka mowi o
    "class", nei sa to klasy w sensie Simuli:

    A programmer studying the object-oriented features of
    Ada 9X [5], maybe astonished by the use of the term class,
    i.e. a set of types sharing common properties and closed
    under derivation, and by the lack of a syntactic constmct
    called class or object.

    Moreover, whereas classes, types and modules share the
    same syntactic construct in the Simula-based object-oriented
    languages (like Eiffel) or extensions (like C++),
    Ada 9X makes a point of keeping the package as basic construct
    for modularity and encapsulation, and the type as construct
    for describing the properties of objects. It would have
    been misleading to introduce class types or typed packzzges,
    since both of these extensions would have introduced adhoc
    and redundant constructs in the language.

    Ada is not the only language to keep this distinction. Other
    modern programming languages such as Modula-3 [9] and
    Oberon-2 [23] incorporate the same design choice. However,
    whereas these programming languages are built on flat
    namespaces, Ada is the only language to have enhanced the
    concept of modularity to take object-oriented systems into
    account for the management of the namespace with hierarchical
    libraries.
    ...
    Ada 9X refines the type derivation
    mechanism by introducing tagged types and type extension.
    A tagged type is a record type the derivatives of which
    can be extended with additional components.

    Working with Ada 9X classes

    Author: Stéphane Barbey Swiss Federal Institute of Technology in
    Lausanne, Software Engineering Laboratory, EPFL-DI-LGL, CH-1015
    Lausanne, Switzerland

    ? Proceeding
    TRI-Ada '94 Proceedings of the conference on TRI-Ada '94
    ACM New York, NY, USA (C)1994

    Podobnie jezyk Oberon (ten od Wirtha) ma obiektowosc oparta o "derived
    types" i "tpe extension". Artykul jest tutaj

    http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1
    .1.93.6273

    Zrwszta, model Ady zostal wziety z idei Wirtha

    Inny model to model oparty o prototypy, a najbardziej znanym
    reprezentatnem ejst jezyk Self

    http://labs.oracle.com/self/

    http://labs.oracle.com/self/papers/self-power.html

    A.L.




Podziel się

Poleć ten post znajomemu poleć

Wydrukuj ten post drukuj

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: