Re: extern(C) with function returning user type

2015-08-01 Thread Kyoji Klyden via Digitalmars-d-learn
On Saturday, 1 August 2015 at 04:11:02 UTC, Laeeth Isharc wrote: Walter observes that if you are a Java programmer and start writing D, you will write D like you write Java. And so I suppose one will see what one doesn't have in Java, but not so much the benefits of D. That's true of other

Re: extern(C) with function returning user type

2015-07-31 Thread Kyoji Klyden via Digitalmars-d-learn
On Friday, 31 July 2015 at 16:09:23 UTC, bachmeier wrote: On Friday, 31 July 2015 at 03:30:20 UTC, Kyoji Klyden wrote: So idk, it feels silly and counterproductive to have D not able to natively use C libraries. Are we just gonna have to write D bindings to every notable library out there?

Re: extern(C) with function returning user type

2015-07-31 Thread Kyoji Klyden via Digitalmars-d-learn
On Friday, 31 July 2015 at 19:13:18 UTC, Laeeth Isharc wrote: On Friday, 31 July 2015 at 17:14:29 UTC, Kyoji Klyden wrote: On Friday, 31 July 2015 at 16:09:23 UTC, bachmeier wrote: On Friday, 31 July 2015 at 03:30:20 UTC, Kyoji Klyden wrote: So idk, it feels silly and counterproductive to have

Re: extern(C) with function returning user type

2015-07-30 Thread Kyoji Klyden via Digitalmars-d-learn
On Thursday, 30 July 2015 at 11:32:10 UTC, bachmeier wrote: On Thursday, 30 July 2015 at 01:14:06 UTC, Mike Parker wrote: On Wednesday, 29 July 2015 at 18:42:45 UTC, Kyoji Klyden wrote: Thanks for the replies, This issue really highlights one of D's weak points I think. I've atleast got a

Re: extern(C) with function returning user type

2015-07-29 Thread Kyoji Klyden via Digitalmars-d-learn
Thanks for the replies, This issue really highlights one of D's weak points I think. I've atleast got a round about solution almost working. :P

extern(C) with function returning user type

2015-07-29 Thread Kyoji Klyden via Digitalmars-d-learn
How would I use a C function that's returning a struct? auto doesn't work here, and from what I can tell D can't import C headers. (If it really can't then, that would be a very welcome feature) I do have the required libs but I can't create my D obj file so I can't really get there. I

small bug on forums

2015-06-08 Thread Kyoji Klyden via Digitalmars-d
So this happened a few minutes ago: (link to image, link expires in a few days) https://www.dropbox.com/s/82v2hpod32h5i7y/bug.png?dl=0 My comment on the thread was the 4th post, I wasn't the OP.

Re: exclude current directory from search path in dmd ?

2015-06-08 Thread Kyoji Klyden via Digitalmars-d-learn
On Tuesday, 9 June 2015 at 00:22:09 UTC, Timothee Cour wrote: On Mon, Jun 8, 2015 at 12:08 AM, Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: The easiest way is to not use search paths, and instead pass all the modules you want compiled to the compiler

Re: string to char array?

2015-06-08 Thread Kyoji Klyden via Digitalmars-d-learn
On Monday, 8 June 2015 at 09:54:28 UTC, Kagamin wrote: On Sunday, 7 June 2015 at 17:41:11 UTC, Kyoji Klyden wrote: Do you perchance have any links to learning resources for the D runtime(aside from just the github repository), and also maybe x86 architecture stuff? (I know intel has some 1000+

Re: string to char array?

2015-06-03 Thread Kyoji Klyden via Digitalmars-d-learn
Ooooh okay, I'm starting to get it. I think this last question should clear it up for me: When a string is made, how is the struct Slice handled? What does ptr get assigned?

Re: dmd makes D appear slow

2015-05-30 Thread Kyoji Klyden via Digitalmars-d
Honestly I've never taken DMD to be the production compiler. I've always left that to the GNU compilers. GDC has all the magic and years of work with it's backend, so I'm not sure how dmd can compare. As others of said, it's really the frontend that DMD is providing that matters; once you have

Re: DMD and dub available via chocolatey

2014-11-02 Thread Kyoji Klyden via Digitalmars-d-announce
On Sunday, 2 November 2014 at 01:52:27 UTC, Daniel Jost wrote: From the homepage[1]: Chocolatey is a Machine Package Manager, somewhat like apt-get, but built with Windows in mind. I have added dmd[2] and dub[3] as packages. This means you can do command line installation and have them ready

Re: What IDE/EDITOR do you use for D?

2014-10-29 Thread Kyoji Klyden via Digitalmars-d
On Wednesday, 29 October 2014 at 19:38:16 UTC, dan wrote: What IDE/EDITOR do you use for D? What plugins if you use Vim? I just use Notepad++ and Powershell. I enjoy the more primitive approach :]

Re: Dub integrated into the compiler?

2014-10-27 Thread Kyoji Klyden via Digitalmars-d
On Monday, 27 October 2014 at 06:40:52 UTC, Tofu Ninja wrote: ... I definitely get your perspective on this whole thing and can see the appeal to it all, but I feel like it really is just complicating things in ways it doesn't need to be complicated. It definitely would make things easier for

Re: Dub integrated into the compiler?

2014-10-26 Thread Kyoji Klyden via Digitalmars-d
On Monday, 27 October 2014 at 02:33:18 UTC, Tofu Ninja wrote: I don't think this is a new idea but it would be pretty awesome. So the idea is that the compiler could check dub for libraries that it can't find and automatically download and integrate them. It would essentially make all of dub

Re: D in my trashbin

2014-10-25 Thread Kyoji Klyden via Digitalmars-d
On Saturday, 25 October 2014 at 19:33:45 UTC, Jkpl wrote: On Friday, 24 October 2014 at 02:42:13 UTC, frustrated wrote: Two days later and I still cant get a 'Hello World' to compile. It is far beyond me how a project can exist for so many years and still not have a straightforward installation

Re: D in my trashbin

2014-10-25 Thread Kyoji Klyden via Digitalmars-d
On Saturday, 25 October 2014 at 22:17:35 UTC, Jkpl wrote: Just ask to Vlad. He seems to be the forum maintainer. He'll check the IP. Even if I'm not the OP, the message is clear: why the hell do you care about this ? DMD setup is fine. It works. dot. Haha, why would anyone go check your IP?

Re: D's New GC and Object Allocation Pools

2014-10-25 Thread Kyoji Klyden via Digitalmars-d
On Sunday, 26 October 2014 at 03:37:47 UTC, Maxime Chevalier-Boisvert wrote: Hello, I was wondering if there have been updates regarding Andrei's announcement that he would rewrite the D garbage collector. Is there any kind of timeline for when a new version of the GC can be expected? I

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 13:45:10 UTC, ketmar via Digitalmars-d wrote: On Fri, 24 Oct 2014 13:26:15 + Meta via Digitalmars-d digitalmars-d@puremagic.com wrote: Let's try to help debug the problem rather than making presumptions about OPs technical knowledge. that's only if OP wants

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 23:05:49 UTC, ketmar via Digitalmars-d wrote: that's why we have D.learn NG, where people tries not just answer to question, but explain the answer, and answer's hidden complexity if there is any, and so on. i rarely see answers with just a fixed code in D.learn,

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 23:44:23 UTC, ketmar via Digitalmars-d wrote: we already moved D.learn to the top of the forums list. i believe that there is more things in play. like seasoned programmers who feel uncomfortable to ask questions in D.learn: why, i'm not a newbie in programming,

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Friday, 24 October 2014 at 23:54:30 UTC, Mike wrote: How does one submit a pull request to update the descriptions on the forum? The forum doesn't seem to be part of dlang.org. Should I have posted this question on D.Learn? :) Nah just file it on the bug tracker, and someone will get

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Saturday, 25 October 2014 at 00:18:40 UTC, ketmar via Digitalmars-d wrote: On Sat, 25 Oct 2014 00:10:02 + Kyoji Klyden via Digitalmars-d digitalmars-d@puremagic.com wrote: The new layout: digitalmars.d.questions --- Get over yourself and ask already. ...and we

Re: D in my trashbin

2014-10-24 Thread Kyoji Klyden via Digitalmars-d
On Saturday, 25 October 2014 at 00:49:58 UTC, Jesse Phillips wrote: On Friday, 24 October 2014 at 22:46:59 UTC, Kyoji Klyden wrote: Despite all rationale, priority should be in offering our assistance, regardless of how futile it may be (Futile, because in this case it's not likely he would