Re:Ć Programming Language - Compile C# subset to C, Java, C#...
by piokuc on Sunday June 16, 2013 @10:12AM
(#5888487)
Does it do garbage collecting in all the target languages? The question is mainly about C, cause I can imagine it can rely on native garbage collector when targeting Java, Perl, etc.
[ Parent
| on HN ]
Re:Ć Programming Language - Compile C# subset to C, Java, C#...
by gjndrtjh on Sunday June 16, 2013 @03:29PM
(#5889570)
It only has manual memory management. No GC.
But if you don't target C, you can just skip using "delete".
Re:Ć Programming Language - Compile C# subset to C, Java, C#...
by stephth on Sunday June 16, 2013 @03:46PM
(#5889631)
Right, from the documentation (albeit hidden in the Arrays section):
Since there is no garbage collection in C, you must free the dynamically allocated array with delete. delete translates to C as free and nothing in other (garbage-collecting) languages.