Article View: pl.comp.lang.funkcyjne
Article #711Funkcja wirtualna zwracająca self (OCaml)
From: Wojciech Mula
Date: Sun, 21 Aug 2005 15:54
Date: Sun, 21 Aug 2005 15:54
21 lines
1260 bytes
1260 bytes
Jest coś takiego: class virtual abstract_class = object method virtual foo: abstract_class end;; class class1 = object (self) inherit abstract_class method foo = (self :> abstract_class) end;; Czy można zadeklarować funkcję wirtualną foo w taki sposób, żeby zwracała obiekt klasy dziedziczącej, czyli samo self? w. -- JID: wmula@chrome.pl | pomóż znaleźć lek na raka http://www.mula.w.pl | http://www.find-a-drug.org
Technical Details
Message-ID:
<slrndgh8tj.2fm.wojciech_mula@cat.tac>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!newsfeed.atman.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail From: Wojciech Mula <wojciech_mula@poczta.null.onet.pl.invalid> Newsgroups: pl.comp.lang.funkcyjne Subject: Funkcja wirtualna zwracająca self (OCaml) Date: Sun, 21 Aug 2005 15:54:48 +0000 (UTC) Organization: http://www.mula.w.pl Lines: 21 Message-ID: <slrndgh8tj.2fm.wojciech_mula@cat.tac> NNTP-Posting-Host: pb8.lancut.sdi.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1124639688 23661 80.49.77.8 (21 Aug 2005 15:54:48 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Sun, 21 Aug 2005 15:54:48 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit