Perhaps this is a xHarbour question, but if I create an instance variable with the READONLY attribute, shouldn't it be protected from having an assignment. xHarbour is allowing me to assign data directly to a READONLY variable. I think it should be generating an error.
I am using the Sept 2006 version of FWH/xHarbour.
James
#include "fivewin.ch"
function main()
local oObj:= TTest():new()
oObj:cVar := "Test readonly"
msgInfo( oObj:cVar ) // returns "Test readonly"
return nil
class TTest
data cVar READONLY
method new()
endclass
method new() class TTest
return self
// eof