jtempl / ofront

Oberon-2 to C translator
http://www.software-templ.com/shareware.html
43 stars 9 forks source link

sysflag [1] for arrays other than open array value parameter #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, an array type declaration of the form

ARRAY[1] OF CHAR 

is defined only for open array value parameters and means that the array is not 
copied. Specifying the array sysflag, however, is allowed at other places as 
well, where it is silently ignored by ofront.
While only the open array value parameter usage is defined in the 
OfronUserGuide, it is a potential source for an error or misunderstanding.

Either the other usages should be marked by ofront as an error or they should 
be supported. A possible semantics would be similar to RECORD[1], which means 
untracked by the Garbage Collector. For this semantics a possible usage would 
be in Module Args, where the argument vector argv is an untracked ARRAY OF 
POINTER TO ARRAY OF CHAR.

Original issue reported on code.google.com by josef.te...@gmail.com on 11 Oct 2013 at 11:35