OE11.7

Posted by Roger Blanchard on 20-Apr-2017 11:53

Should this compile in 11.7? It does in 11.4 but not in 11.7.

CLASS TestArray:
 
 DEFINE PUBLIC PROPERTY Comments_Comments     AS CHARACTER EXTENT     NO-UNDO
 GET(INPUT idx AS INTEGER):
   RETURN "".
 END GET.
 
 /*------------------------------------------------------------------------------
  Purpose:
  Notes:
 ------------------------------------------------------------------------------*/
  
 CONSTRUCTOR PUBLIC TestArray (  ):
  
  EXTENT (THIS-OBJECT:Comments_Comments) = 5.
  
 END CONSTRUCTOR.


 
 
END CLASS.

All Replies

Posted by Brian K. Maher on 20-Apr-2017 11:58

Hi Roger,
 
It appears we tightened up the compiler.  You need to add a PRIVATE SET to the Comments_Comments property.
 
Brian

Posted by Fernando Souza on 20-Apr-2017 12:00

The fact that you were able to compile it was a bug.  If you didn't reference Comments_Comments with THIS-OBJECT, it would have failed to compile before too.

Posted by Roger Blanchard on 20-Apr-2017 12:00

okay, thanks (Brian and Fernando)

This thread is closed