Bug #115

Comparing procedure pointers

Added by I. Denisov over 3 years ago. Updated over 3 years ago.

Status:RejectedStart date:06/27/2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:1.7
Forum topic:

Description

Procedure pointers can't be compared if their types was declared separately:

MODULE A;

  TYPE
    Proc = PROCEDURE;

  PROCEDURE Test1 (): BOOLEAN;
    VAR
      P1, P2: PROCEDURE;
  BEGIN
    RETURN P1 = P2; (* ok *)
  END Test1;

  PROCEDURE Test2 (): BOOLEAN;
    VAR
      P1: PROCEDURE;
      P2: PROCEDURE;
  BEGIN
    RETURN P1 = P2; (* error *)
  END Test2;

  PROCEDURE Test3 (): BOOLEAN;
    VAR
      P1: Proc;
      P2: Proc;
  BEGIN
    RETURN P1 = P2; (* ok *)
  END Test3;

END A.

Reported by X512
http://community.blackboxframework.org/viewtopic.php?f=18&p=638#p638

History

#1 Updated by I. Denisov over 3 years ago

  • Status changed from New to Rejected

Also available in: Atom PDF