Self/eo: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Self/eo
| Old | New | Line | |
|---|---|---|---|
| 1 | + | `Self` estas [[Keyword|ŝlosilvorto]] kiun oni povas uzi en ekzemplo-[[Method|metodoj]] por direkti al la objekto sur kiu la nuntempe plenumigita metodo estis envokita. [[Reserved word|Rezervita vorto]] `self` uzita por reprezenti ekzemplon de [[Class|klaso]] en kiu ĝi aperas. Oni povas uzi na `Self` por atingi la membrojn de klaso kaj kiel referenco al la nuntempa ekzemplo. | |
| 2 | + | ||
| 3 | + | ``` pascal | |
| 4 | + | procedure TForm1.FormCreate(Sender: TObject); | |
| 5 | + | begin | |
| 6 | + | // En tiu ĉi ekzemplo, Self estas la TForm1 klaso | |
| 7 | + | Self.Caption := 'Test program'; | |
| 8 | + | Self.Visible := True; | |
| 9 | + | end; | |
| 10 | + | ``` | |
| 11 | + | ||
| 12 | + | --- | |
| 13 | + | *From the Free Pascal wiki, page "Self/eo", as it stood on 2021-09-15 after a change by Deadmarshal, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
