Post 9pvaBUTQKFDRNAlhuy by webfreak@niu.moe
 (DIR) More posts by webfreak@niu.moe
 (DIR) Post #9ptzIFsF79JcepmPrM by danyspin97@pleroma.liveunix.org
       2019-12-12T22:05:43.534820Z
       
       0 likes, 0 repeats
       
       Devember: First ten dayshttps://danyspin97.org/blog/devember-2019-first-ten-days/#dlang #devember
       
 (DIR) Post #9pvaBUTQKFDRNAlhuy by webfreak@niu.moe
       2019-12-13T13:19:05Z
       
       1 likes, 0 repeats
       
       @danyspin97 cool, there aren't really a lot of D blog articles, so great you made one!in the code in the blog article you wrote "const char * path" which in D means "const(char*) path" - so in C your could would actually be "char * const path"If you wanted to write it like in C you would need to write it "const(char)* path" in Dalso I like that you used meson, I only use dub myself because I am so used to it and design my tooling around it, but meson would be something cool to support in tools as well. What do you think of the tooling situation in D right now?
       
 (DIR) Post #9pvaBUf7ckZbxSF39U by danyspin97@pleroma.liveunix.org
       2019-12-13T16:33:47.352771Z
       
       0 likes, 0 repeats
       
       @webfreak> in the code in the blog article you wrote "const char * path"https://github.com/DanySpin97/libconfini-d/blob/master/deimos/confini.d#L161Yea, I've taken the signature from confini.d file, and it uses "const char*" because the function is tagged with "extern (C)" Now that you make me think about it, I am not sure that the signature I've written for "toStringz" is correct.> What do you think of the tooling situation in D right now?Well, talking about meson, it has really few support :/ the other tools sometimes are not maintained and they all use dub, which is something I truly dislike.Thanks for the word of appreciation, I'll write new posts about D in the future and I'll be happy to have your opinion on them :)
       
 (DIR) Post #9pvejlZZenvK4FFEki by webfreak@niu.moe
       2019-12-13T16:35:26Z
       
       1 likes, 0 repeats
       
       @danyspin97 > it uses "const char*" because the function is tagged with "extern (C)"I would guess the binding is wrong there (the extern (C) doesn't change the syntax rules of const)
       
 (DIR) Post #9pvejlsMWwx70W2F2O by webfreak@niu.moe
       2019-12-13T16:37:17Z
       
       1 likes, 0 repeats
       
       @danyspin97 well note: it maybe is correct like that in the source library, but usually you won't find that so often and it's often something to be aware of
       
 (DIR) Post #9pvejmEhBuoi7mU4qe by danyspin97@pleroma.liveunix.org
       2019-12-13T17:24:49.154717Z
       
       0 likes, 0 repeats
       
       @webfreak Yea, this is definitely somithing to be aware of, thanks for the tip! I will investigate and see what it is the correct way.