|
|
|
|
|
by pjmlp
3535 days ago
|
|
Where to place a record (struct) in Modula-3: VAR
stackOrGlobalMem: RECORD ... END;
heapGC : REF RECORD ... END;
somewhereManual : UNTRACED REF TO RECORD ... END;
rawMem : ADDRESS;
Also valid for any other data type in the language.So one can take advantage of GC productivity, while making use of C++ like features for manual allocation when required. I remember reading a paper with a generics module for using smart references as well. There are other not so well know GC enabled system programming languages with similar feature sets. EDIT: like was missing |
|