Autor Beitrag
Mortal-Shadow
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: Mi 06.10.10 11:21 
Hi,

in Java gibt es einen "this" operator um bei doppelter namenbelegung von variablen auf die richtige zugreifen.
Es soll ca. so aussehen:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
type
TMyClass = class
name: String;
end;
...
procedure TMyClass.foo(name: String);
begin
this.name = name;
end;

nur kennt delphi halt den this-operator nicht.
Wie heist der in Delphi?
Antwort wäre nett.
Mfg.
platzwart
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1054
Erhaltene Danke: 78

Win 7, Ubuntu 9.10
Delphi 2007 Pro, C++, Qt
BeitragVerfasst: Mi 06.10.10 11:22 

_________________
Wissenschaft schafft Wissenschaft, denn Wissenschaft ist Wissenschaft, die mit Wissen und Schaffen Wissen schafft. (myself)
Mortal-Shadow Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 110



BeitragVerfasst: Mi 06.10.10 11:32 
Ahh, vielen Dank.
Etwas wirklich simples, aber beschissen zu suchen.