Registriert seit: 3. Mai 2003
140 Beiträge
Delphi 2006 Enterprise
|
Re: Instanz sich selber zerstören lassen?
19. Nov 2003, 14:12
Hallo,
mit einer class procedure sollte es auf jeden Fall funktionieren:
Delphi-Quellcode:
class procedure TIrgendwas.Machwas;
begin
with Create(nil) do try
MachDasEine;
MachDasAndere;
finally
Free;
end;
end;
"... we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we don't know. But there are also unknown unknowns - the ones we don't know we don't know."
|