Szymon Gatner Posted in reply to ketmar



Permalink Reply

On Thursday, 8 January 2015 at 11:31:14 UTC, ketmar via Digitalmars-d-announce wrote: > On Thu, 08 Jan 2015 11:24:34 +0000 > Szymon Gatner via Digitalmars-d-announce > <digita lmars-d- announce@ puremagic.com> wrote: > >> On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote: >> > I've started a list of curated D tips and tricks here: >> > >> > Anything that you wished you learned earlier at one point in the D world is welcome to be added or suggested. >> > >> > I think the focus should be on "stuff that could make you more productive, or is just funky" but that is up to debate. >> > >> > Of course the D Cookbook still stays irreplaceable for a consistent, in-depth discussion of being D-enabled. >> > >> > Thoughts? I've started a list of curated D tips and tricks here: http:// p0nce. github.io/ d-idioms/ Anything that you wished you learned earlier at one point in the D world is welcome to be added or suggested.I think the focus should be on "stuff that could make you more productive, or is just funky" but that is up to debate.Of course the D Cookbook still stays irreplaceable for a consistent, in-depth discussion of being D-enabled.Thoughts? >> >> They are really cool, thanks :) >> >> Question: >> >> Where did this syntax came from? It is not documented for 'import' keyword.(first time I see that D has built-in resource compiler): >> >> ubyte[] sdlBytes = cast(ubyte[]) import("SDL2.dll"); On Thursday, 8 January 2015 at 10:21:26 UTC, ponce wrote:They are really cool, thanks :)Question:Where did this syntax came from? It is not documented for 'import' keyword.(first time I see that D has built-in resource compiler):ubyte[] sdlBytes = cast(ubyte[]) import("SDL2.dll"); > it is documented: > it's a nice D habit of overloading keywords. On Thu, 08 Jan 2015 11:24:34 +0000Szymon Gatner via Digitalmars-d-announcewrote:it is documented: http:// dlang.org/ expression. html#Impor tExpression it's a nice D habit of overloading keywords.