vyklad kodu

Jan Kasprzak kas na informatics.muni.cz
Čtvrtek Září 11 18:29:11 MEST 2003


Ondrej Koala Vacha wrote:
: On Thu, 11 Sep 2003, Jan Kasprzak wrote:
: 
: > :  16:   itsTime = Qt::Time;
: > :  17:   itsTime->start;
: > :  18:   this->connect(this, SIGNAL 'clicked()', SLOT 'wasClicked()');
: > :  19:   this->connect(this, SIGNAL 'changeIt(int,int)', SLOT 'change(int,int)');
: > :  20: }
: > :
: > 	A neni to nejaka funkce/subrutina? Co rekne
: >
: > print ref itsTime
: >
: 
: To me taky napadlo:
: 
: Qt::Time
: 
: nicmene - je-li to funkce, proc se do ni prirazuje - ma to nejaky smysl?
: 
	No a neni to tak, ze ta funkce vraci pointer (teda vlastne
referenci)? Neco jako

------------------
#!/usr/bin/perl -w
package Balik;
my $promenna;
sub Promenna { \$promenna };
------------------
#!/usr/bin/perl -w
use Balik;
Balik::Promenna = 1;
------------------

-Y.

-- 
| Jan "Yenya" Kasprzak  <kas at {fi.muni.cz - work | yenya.net - private}> |
| GPG: ID 1024/D3498839      Fingerprint 0D99A7FB206605D7 8B35FCDE05B18A5E |
| http://www.fi.muni.cz/~kas/   Czech Linux Homepage: http://www.linux.cz/ |
|  I actually have a lot of admiration and respect for the PATA knowledge  |
| embedded in drivers/ide. But I would never call it pretty:) -Jeff Garzik |


Další informace o konferenci Perl