Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2000-07

Possible compiler problem ?

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Marc Weustink
to Marc Weustink: While fixing an editor problem I ran into the following: type TMyStruct = record case…

+ From: Marc Weustink

+ While fixing an editor problem I ran into the following: +
+ type
+ TMyStruct = record
+ case AType: TMytype
+ TypeA: (TypeAPtr: TTypeAPtr);
+ TypeB: (TypeBPtr: TTypeBPtr);
+ TypeC: (TypeCPtr: TTypeCPtr);
+ end;
+
+ In earlier discussions it was stated that indepentend of
+ AType the following
+ was true:
+
+ MyStruct.TypeAPtr := SomePointer;
+
+ MyStruct.TypeBPtr = SomePointer = MyStruct.TypeCPtr +
+ Is this still the case, since I've some suspictions that it
+ isn't the case.

Seems to be fixed in the latest compiler.

Marc

Reply by email

Marc Weustink

Hi,
While fixing an editor problem I ran into the following:

type
  TMyStruct = record
    case AType: TMytype
      TypeA: (TypeAPtr: TTypeAPtr);
      TypeB: (TypeBPtr: TTypeBPtr);
      TypeC: (TypeCPtr: TTypeCPtr);
  end;

In earlier discussions it was stated that indepentend of AType the following was true:

  MyStruct.TypeAPtr := SomePointer;
  MyStruct.TypeBPtr = SomePointer = MyStruct.TypeCPtr

Is this still the case, since I've some suspictions that it isn't the case.

Marc

Reply by email