[Semi OT] Language for Game Development talk

currysoup via Digitalmars-d digitalmars-d at puremagic.com
Thu Sep 25 05:16:16 PDT 2014


On Thursday, 25 September 2014 at 11:30:16 UTC, ketmar via 
Digitalmars-d wrote:
> 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.

I wasn't talking about D, just in general.


More information about the Digitalmars-d mailing list