Microsoft Word OpenIssuesInOO. doc



Download 1,28 Mb.
Pdf ko'rish
bet20/51
Sana29.08.2021
Hajmi1,28 Mb.
#158917
1   ...   16   17   18   19   20   21   22   23   ...   51
Bog'liq
OpenIssuesInOO

Pattern references. References to patterns has little support in most object-oriented 

languages. References to procedure patterns resemble procedure variables that may be 

assigned procedures as values. If a procedure value includes the static environment 

(object) of the procedure then it is a closure, but if it only includes a pointer to the code 

it is not. The function pointer in C is an example of procedure variables, but since C 

does not have bock structure there is no issue of a procedure value being a closure. C++ 

supports closures via pointers to member functions. Algol 60 supports closures via its 

formal procedure parameter mechanisms, and Lisp-like languages including Scheme 

[RC86] and CLOS [Kee89], have direct support for closures as first class values. 

Smalltalk and Self [US87] have closures in the form of blocks. A Self block can, 

however, not be invoked after its enclosing method has returned. In  Smalltalk and Self 

it is not possible  to pass a reference to a method as a closure. In Self it is, however, 

possible to obtain the same effect by using reflection. 

                                                 

5

A virtual procedure pattern is similar to a virtual function in C++. Virtual patterns are further discussed 



in section 4.3. 


 

References to classes are even more rare and are not supported by any of the 

mainstream statically-typed languages such as C++ and Eiffel. In Smalltalk classes are 

objects and in Self objects are used instead of classes. I.e. references to classes (in Self 

objects used as classes) are directly supported by the language. 


Download 1,28 Mb.

Do'stlaringiz bilan baham:
1   ...   16   17   18   19   20   21   22   23   ...   51




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish