phobos
D etc.c.curl examples
D, being the lesser known language of the bunch, has very little going for it in the way of libraries. I am trying to download a file, and the way I can see to do that with DMD 2 and phobos is with et[详细]
2023-03-30 04:18 分类:问答D naming conventions: How is Phobos organized?
I\'m making my own little library of handy functions and I\'m trying to follow Phobos\'s naming convention but I\'m getting really confused. How do I know where things would fit?[详细]
2023-03-26 18:31 分类:问答DMD Phobos-to-Tango conversion: va_arg - what is it? and what do I replace it with?
I\'m trying to convert some Phobos code to its Tango equivalent, but I am stuck on this piece of code that I don\'t completely understand:[详细]
2023-03-16 14:00 分类:问答Do Phobos (and/or Tango) have a set of predefined exception types?
The D documentation seems to be a bit messy, and I\'m not able to find this information anywhere on the official site. I\'m needing some common exception types (e.g. NotFiniteNumberException, FileIOEx[详细]
2023-03-07 00:55 分类:问答How to get single keystroke in D2 (Phobos)?
Is there a simple, cross-platform way to get a single keystro开发者_StackOverflow中文版ke in D2 using Phobos?[详细]
2023-02-17 20:44 分类:问答Extension methods in D?
Hey folks, I\'m trying to get these bits of syntax to make sense to me: S[] split(S)(S s) if (isSomeString!S)[详细]
2023-02-06 03:43 分类:问答Read Text File in D
Is there any one-size-fits-all (more or less) way to read a text file in D? The requirement is that the function would auto-detect the encoding and give me the entire data of the file in a consistent[详细]
2023-02-05 00:05 分类:问答Binary Search in D 2.0 (Phobos)?
Is it just me, or is there no binary search function in Phobos? I have a pre-sorted array that I want 开发者_运维知识库to search with my own comparator function, but I can\'t find anything in std.algo[详细]
2023-02-03 04:06 分类:问答Stack-based object instantiation in D
I\'m learning D, and am confused by an error I\'m getting. Consider the following: module helloworld; import std.stdio;[详细]
2023-01-21 11:47 分类:问答Using std.algorithm.map with member functions in D2
I have: Foo foo = new Foo(); foreach (i; 0..10) { Bar bar = foo.getBar(i); ... } I want to be able to instead say (equivalently):[详细]
2023-01-19 00:03 分类:问答