🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.tcl
Article #293

Re: libgg a tcl

#293
From: Maciej Sobczak
Date: Fri, 13 Jan 2006 13:11
47 lines
2044 bytes
Googie wrote:

>> http://cpptcl.sourceforge.net/
> 
> Jeszcze jedno pytanie: jak wygląda sprawa obiektów danych klas w 
> argumentach? Tzn. załóżmy że mamy 2 klasy C++:
> 
> class A
> {
>     /// jakieś ciało
> };
> 
> class B
> {
>     public:
>         void metoda(A argument);

           void metoda(A *argument);

>     /// jakieś ciało
> };
> 
> ?
> Czy w Tcl będzie można zapisać:
> 
> set a [A]
> set b [B]
> b metoda $a

Tak - ale wtedy, gdy parametr jest przez wskaźnik. I, niestety, w tej 
chwili bez rozpoznania, czy typ jest poprawny.

> To samo pytanie odnośnie wartości zwracanych.

Też przez wskaźnik.

Tutaj:

http://cpptcl.sourceforge.net/doc/callpolicies.html

są pokazane dodatkowe szczegóły, które mogą być w takich sytuacjach 
potrzebne.


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/
Technical Details
Message-ID: <dq88tg$5a4$1@sunnews.cern.ch>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!cern.ch!news
References: <15ap42hnax7z6$.dlg@takeda.tk.invalid> <dpvmut$j2m$1@srv.cyf-kr.edu.pl> <y6jrt3zhm1uk.dlg@takeda.tk.invalid> <dq32d4$jr4$1@sunnews.cern.ch> <dq7v8m$o3u$1@srv.cyf-kr.edu.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!mat.uni.torun.pl!news.man.torun.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!news-zh.switch.ch!switch.ch!cernne03.cern.ch!cern.ch!news
From: Maciej Sobczak <no.spam@no.spam.com>
Newsgroups: pl.comp.lang.tcl
Subject: Re: libgg a tcl
Date: Fri, 13 Jan 2006 14:11:13 +0100
Organization: CERN - European Laboratory for Particle Physics
Lines: 47
Message-ID: <dq88tg$5a4$1@sunnews.cern.ch>
References: <15ap42hnax7z6$.dlg@takeda.tk.invalid> <dpvmut$j2m$1@srv.cyf-kr.edu.pl> <y6jrt3zhm1uk.dlg@takeda.tk.invalid> <dq32d4$jr4$1@sunnews.cern.ch> <dq7v8m$o3u$1@srv.cyf-kr.edu.pl>
NNTP-Posting-Host: abpc10883.cern.ch
Mime-Version: 1.0
X-Trace: sunnews.cern.ch 1137157872 5444 (None) 137.138.37.241
X-Complaints-To: news@sunnews.cern.ch
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Red Hat/1.7.12-1.1.3.2.SL3
X-Accept-Language: en-us, en
In-Reply-To: <dq7v8m$o3u$1@srv.cyf-kr.edu.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit