[Semi OT] Language for Game Development talk
ketmar via Digitalmars-d
digitalmars-d at puremagic.com
Thu Sep 25 04:30:05 PDT 2014
On Thu, 25 Sep 2014 10:46:59 +0000
currysoup via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> I quite like the idea of "simple by default" and you enable
> features with annotations (@usegc, @throws, @pure).
"@usegc" will be major PITA. for example any function that does string
concatenation or format() will need this annotation. i see GC as
intergal and widely-used part of language, so "@nogc" is ok.
what we need though is "@gc" to allow things like this:
@nogc:
void foo () { ... some no-gc code ... }
void bar () @gc { ... some gc code ... }
to be able to mark the whole part of the code as @nogc but still allow
to write one or two @gc functions by the way.
ah, and the same for 'final'.
sure one can just move necessary definitions to top of the file (i.e.
they will appear before "@nogc:"), but this will hurt code readability.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140925/17fac3e4/attachment.sig>
More information about the Digitalmars-d
mailing list