GC and RC
KnightMare
black80 at bk.ru
Tue Jun 11 20:39:15 UTC 2019
On Tuesday, 11 June 2019 at 20:28:51 UTC, KnightMare wrote:
> - will be created utility that automatically converts the
> GC-code to nongc? arrays to rcarrays etc.
- will the compiler be split into 2 parts?
compiler can generate code from (1) to (2) for nogc automatically
when it knows rc-types and how handle it. can remove unnecessary
addref/release for params, for returns probably.
pro: user source code can be same. generated code depends only
from compiler version or compiler option - GC or RC. (can be same
source for RT?)
More information about the Digitalmars-d
mailing list