Autor Beitrag
HaRaH
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 65



BeitragVerfasst: Fr 20.05.05 15:13 
Hallo,
ich habe in zwei unterschiedlichen Klassen Stringzeigertypen derart definiert:
ausblenden Delphi-Quelltext
1:
2:
type
  PString = ^String;


in beiden Klassen gibt es eine Prozedur, die als Parameter diesen Typ PString erwartet:
ausblenden Delphi-Quelltext
1:
  procedure run(Source: PString; index: Integer);					


wenn ich jetzt von einer Klasseinstanz eine Methode der anderen aufrufen will

aus Klasse1:
ausblenden Delphi-Quelltext
1:
  meineKlasse2.run(Source, 0);					


dann spuckt der Interpreter folgende Fehlermeldung aus:
Inkompatible Typen: 'KlasseA.String' und KlasseB.String

Kann mir jemand erklären, woran das liegt?

Danke!
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Fr 20.05.05 16:16 
user profile iconHaRaH hat folgendes geschrieben:
Kann mir jemand erklären, woran das liegt?
An deinem Crosspost in einem anderen bekannten Forum, ohne darauf hinzuweisen, selbst nachdem du dort die Antwort erhalten hast.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Fr 20.05.05 16:23 
Generell kann ich dir zum Thema Strings sonst nur noch mein Tutorial ans Herz legen: www.manuel-poeter.de

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!