-
Data: 2011-05-25 14:03:12
Temat: Re: Co ma Objective-C czego nie ma C++?
Od: A.L. <l...@a...com> szukaj wiadomości tego autora
[ pokaż wszystkie 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.
Najnowsze wątki z tej grupy
- C++. Podróż Po Języku - komentarz
- "Wuj dobra rada" z KDAB rozważa: Choosing the Right Programming Language for Your Embedded Linux Device
- Nowa ustawa o ochronie praw autorskich - opis problemu i szkic ustawy
- Alg. kompresji LZW
- Popr. 14. Nauka i Praca Programisty C++ w III Rzeczy (pospolitej)
- Arch. Prog. Nieuprzywilejowanych w pełnej wer. na nowej s. WWW energokod.pl
- 7. Raport Totaliztyczny: Sprawa Qt Group wer. 424
- TCL - problem z escape ostatniego \ w nawiasach {}
- Nauka i Praca Programisty C++ w III Rzeczy (pospolitej)
- testy-wyd-sort - Podsumowanie
- Tworzenie Programów Nieuprzywilejowanych Opartych Na Wtyczkach
- Do czego nadaje się QDockWidget z bibl. Qt?
- Bibl. Qt jest sztucznie ograniczona - jest nieprzydatna do celów komercyjnych
- Co sciaga kretynow
- AEiC 2024 - Ada-Europe conference - Deadlines Approaching
Najnowsze wątki
- 2025-04-14 Odpowiedzialność cywilna publicznej szkoły podstawowej za molestowanie seksualne dziecka przez nauczyciela
- 2025-04-14 Szczecin => Key Account Manager (ERP) <=
- 2025-04-14 Warszawa => Java Full Stack Developer (Angular2+ experience) <=
- 2025-04-14 Warszawa => Java Full Stack Developer (Angular2+) <=
- 2025-04-14 Warszawa => Senior Frontend Developer (React + React Native) <=
- 2025-04-14 Kraków => NMS System Administrator <=
- 2025-04-14 Kraków => NMS System Administrator <=
- 2025-04-14 Zielona Góra => Konsultant wdrożeniowy Comarch XL (Logistyka, WMS, P
- 2025-04-14 Warszawa => Fullstack PHP Developer <=
- 2025-04-14 Ostrów Wielkopolski => Konsultant Wdrożeniowy Comarch XL/Optima (Ksi
- 2025-04-14 t-mobile z dodatkiem perplexity_ai
- 2025-04-14 Warszawa => Senior Frontend Developer (React + React Native) <=
- 2025-04-14 Kazdy z nas móglby to napisac
- 2025-04-14 kontrolowanie tego czy wpłaty faktycznie pochodzą od różnych darczyńców jest niemożliwe
- 2025-04-14 Korekcja perspektywy