Intermediate scopes in Oberon-07
10 Feb
2018
10 Feb
'18
1:57 p.m.
Just for the record: Below is a possible implementation of the Oberon-07 compiler that disallows access to ALL intermediate objects,
Amendment: The modified ORP.qualident has one additional line: PROCEDURE qualident(VAR obj: ORB.Object); BEGIN obj := ORB.thisObj(); ORS.Get(sym); IF obj = NIL THEN ORS.Mark("undef"); obj := dummy END ; IF (sym = ORS.period) & (obj.class = ORB.Mod) THEN ORS.Get(sym); IF sym = ORS.ident THEN obj := ORB.thisimport(obj); ORS.Get(sym); IF obj = NIL THEN ORS.Mark("undef"); obj := dummy END ELSE ORS.Mark("identifier expected"); obj := dummy END ELSE CheckLevel(obj.lev) (*<---- added*) END END qualident;
3212
Age (days ago)
3212
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andreas Pirklbauer