🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.pascal
2 messages
2 total messages Started by webmajsterek@poc Wed, 30 Jun 2010 17:39
Generic a deklaracja w metodzie klasy
#89656
Author: webmajsterek@poc
Date: Wed, 30 Jun 2010 17:39
18 lines
409 bytes
type

   MyClass=class
      var Next:MyClass;
      procedure  Add(Source :MyClass );
   end;

da si� zrobi� odwolanie w klasie generycznej do samej siebie ???
( to ponizej niestety nie diza�a -- a nie mam pomys�u jak ten problem omin�� )

   generic MyClass=class
      var Next:MyClass;
      procedure  Add(Source :MyClass );
   end;

--
Wys�ano z serwisu OnetNiusy: http://niusy.onet.pl

Re: Generic a deklaracja w metodzie klasy
#89657
Author: =?iso-8859-2?Q?
Date: Thu, 01 Jul 2010 10:55
25 lines
672 bytes
On Wed, 30 Jun 2010 17:39:51 +0200, webmajsterek@poczta.onet.pl wrote:
> type
>
>    MyClass=class
>       var Next:MyClass;
>       procedure  Add(Source :MyClass );
>    end;
>
> da si� zrobi� odwolanie w klasie generycznej do samej siebie ???
> ( to ponizej niestety nie diza�a -- a nie mam pomys�u jak ten problem omin�� )
>
>    generic MyClass=class
>       var Next:MyClass;
>       procedure  Add(Source :MyClass );
>    end;

Zgodnie z dokumentacj�, jak powiadaj� Czesi, to se ne da.

Jak chcesz prawdziwe d�eneriksy/templejty to u�yj j�zyka
sprawnego w tym zakresie ;-).

--
Pozdrawiam,
�ukasz 'Maly' Ostrowski.      http://l3v.pl/

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads