On 10/04/2017 09:57 PM, John Gabriele wrote:
I'm using Emacs 25.2.2 with d-mode-20161022.717 on Debian Testing, and
by default this mode indents by 2 spaces. Is there an easy way to
configure it to use 4 spaces instead?
I can't imagine it has its own tab width. d-mode is based on cc-mode.
S
I'm using Emacs 25.2.2 with d-mode-20161022.717 on Debian
Testing, and by default this mode indents by 2 spaces. Is there
an easy way to configure it to use 4 spaces instead?
On Wednesday, 4 October 2017 at 16:31:35 UTC, Jiyan wrote:
Hey,
as i see it the -Ipath command for dmd just imports the files
within a directory but it doesnt work for sub directories, so i
can write something like:
import subdirectoryFromPath.file;
Also with dub this doesnt seem possible (
Any ideas on how someone could iterate over functions in a module
as they appear, rather than any random order, without having to
manually label them?
Andrei's book contains some outdated and some not-yet-implemented things
but it's still a great read. It explains core features and design
decisions of D very well.
Ali
On 2017/09/19 19:40, EntangledQuanta wrote:
writeln(x + ((_win[0] == '@') ? w/2 : 0));
writeln(x + (_win[0] == '@') ? w/2 : 0);
The first returns x + w/2 and the second returns w/2!
WTF!!! This stupid bug has caused me considerable waste of time. Thanks
Walter! I know you care so mu
Hi all,
This is my first message to this forum. And what a pleasure it is
to be here. :)
I was just looking around at what D books are available. I see
that Andrei's "The D Programming Language" was published in 2010.
What's changed in the language, library, and community since then
that I
On Wednesday, 4 October 2017 at 15:30:08 UTC, Ali Çehreli wrote:
the hidden \r characters at the ends
Those got me too!
Here's my less than optimal solution:
int main(string[] args)
{ import std.stdio;
import std.algorithm.iteration : map, splitter, joiner, each;
import std.algorit
On 2017/10/04 21:20, Jonathan M Davis wrote:
On Wednesday, October 04, 2017 17:26:36 ketmar via Digitalmars-d-learn
wrote:
Tristan B. Kildaire wrote:
Does this work?
btw. there is "D" newsgroup which you can use for testing your NNTP
client.
web interface: http://forum.dlang.org/group/D
NNTP
On Wednesday, 4 October 2017 at 15:26:02 UTC, Ali Çehreli wrote:
On 10/04/2017 02:04 AM, Biotronic wrote:
...
Hey where is the list of features used e.g: ranges, ufcs...
On Wednesday, October 04, 2017 17:26:36 ketmar via Digitalmars-d-learn
wrote:
> Tristan B. Kildaire wrote:
> > Does this work?
>
> btw. there is "D" newsgroup which you can use for testing your NNTP
> client.
>
> web interface: http://forum.dlang.org/group/D
> NNTP name: "D"
You can also just pos
On Wednesday, 4 October 2017 at 15:30:08 UTC, Ali Çehreli wrote:
On 10/04/2017 02:26 AM, Atila Neves wrote:
> in D so trivial it'd probably make me sleep out of boredom.
I spent more time on this obviously trivial program than
necessary. :( In addition to facing known template resolution
issu
On 10/02/2017 11:54 PM, eastanon wrote:
> I would like to dive deeper into D, however sometimes it can get
> intimidating when I read some of the discussions on the forums and I
> realise I know nothing.
I think it happens to everyone at different level. (Certainly happens to
me all the time.)
On Tuesday, 3 October 2017 at 06:54:01 UTC, eastanon wrote:
I would like to choose D as my go to language and to do that I
realise I need a mentor, someone who will walk and guide me and
not get irritated by basic questions. I am pretty much a DIY
person, so don't worry about mundane issues. I
Hey,
as i see it the -Ipath command for dmd just imports the files
within a directory but it doesnt work for sub directories, so i
can write something like:
import subdirectoryFromPath.file;
Also with dub this doesnt seem possible (sourcePaths seems to
work as the -I command).
Is there a
On Wednesday, 4 October 2017 at 03:39:22 UTC, rikki cattermole
wrote:
On 04/10/2017 3:54 AM, Jesse Phillips wrote:
https://msdn.microsoft.com/en-us/library/windows/desktop/cc307220(v=vs.85).aspx
"Application program source files include the Http.h header
file to access function prototypes an
On 10/04/2017 02:26 AM, Atila Neves wrote:
> in D so trivial it'd probably make me sleep out of boredom.
I spent more time on this obviously trivial program than necessary. :(
In addition to facing known template resolution issues, the hidden \r
characters at the ends of some of the fields in
On 10/04/2017 02:04 AM, Biotronic wrote:
> I opted for writing to stdout instead, because 1) it's easier, x) it's
> less code, and b) it's more flexible.
Exactly! :)
> a simple replacement of readText with an mmapped equivalent should
> enable humongous file support with no other code change re
On Wednesday, 4 October 2017 at 14:26:36 UTC, ketmar wrote:
Tristan B. Kildaire wrote:
Does this work?
btw. there is "D" newsgroup which you can use for testing your
NNTP client.
web interface: http://forum.dlang.org/group/D
NNTP name: "D"
Ah okay. Thanks.
Tristan B. Kildaire wrote:
Does this work?
btw. there is "D" newsgroup which you can use for testing your NNTP client.
web interface: http://forum.dlang.org/group/D
NNTP name: "D"
On 2017/10/03 08:54, eastanon wrote:
I have been reading the D forums for a while and following on its
amazing progress for a long time. Over time I have even written some
basic D programs for myself, nothing major or earth shuttering. I have
downloaded and read Ali's excellent book.
I would
On 2017/10/03 08:54, eastanon wrote:
I have been reading the D forums for a while and following on its
amazing progress for a long time. Over time I have even written some
basic D programs for myself, nothing major or earth shuttering. I have
downloaded and read Ali's excellent book.
I would
On 2017/10/04 16:20, Andrea Fontana wrote:
On Wednesday, 4 October 2017 at 14:18:52 UTC, Tristan B. Kildaire wrote:
Does this work?
No, I don't read you. Try again :)
Haha, thanks. :)
On Wednesday, 4 October 2017 at 14:18:52 UTC, Tristan B. Kildaire
wrote:
Does this work?
No, I don't read you. Try again :)
Tristan B. Kildaire wrote:
Does this work?
if you can see this reply, it works.
On Wednesday, 4 October 2017 at 14:18:52 UTC, Tristan B. Kildaire
wrote:
Does this work?
Sorry about this guys, just wanted to check out if NNTP access
worked on my side.
Won't happen again.
Does this work?
On Wednesday, 4 October 2017 at 09:04:58 UTC, Biotronic wrote:
Since the code uses ranges though, a simple replacement of
readText with an mmapped equivalent should enable humongous
file support with no other code change required.
Drop-in replacement for readText:
struct MmText {
import s
04.10.2017 12:54, Biotronic пишет:
template isTemplate(T...) if (T.length == 1) {
enum isTemplate = __traits(isTemplate, T[0]);
}
--
Biotronic
Thank you!
On Wednesday, 4 October 2017 at 09:32:31 UTC, drug wrote:
I need to separate templates:
```
foreach(member; __traits(allMembers, V))
{
static if (__traits(compiles, { auto _val =
&__traits(getMember, value, member); })
{
// a template needs to be instantiated to be addressable, so
i
I need to separate templates:
```
foreach(member; __traits(allMembers, V))
{
static if (__traits(compiles, { auto _val = &__traits(getMember, value,
member); })
{
// a template needs to be instantiated to be addressable, so it works,
but I think it's dirty hack instead of dry and cle
On Tuesday, 3 October 2017 at 19:25:56 UTC, Ali Çehreli wrote:
Found on Reddit:
https://www.reddit.com/r/programming/comments/740617/the_expressive_c17_coding_challenge/
How would you do it in D?
Ali
P.S. You can ignore the following note from the challenge text;
I don't think it applies to
On Wednesday, October 04, 2017 09:04:10 thorstein via Digitalmars-d-learn
wrote:
> Hi,
>
> I get the following compile error with this function below:
> source\mod_data\matrices.d(66,12): Error: cannot implicitly
> convert expression (j) of type ulong to uint
>
> (66,12) is [j] in row[j]
>
> Using
On Tuesday, 3 October 2017 at 19:25:56 UTC, Ali Çehreli wrote:
Found on Reddit:
https://www.reddit.com/r/programming/comments/740617/the_expressive_c17_coding_challenge/
How would you do it in D?
Ali
P.S. You can ignore the following note from the challenge text;
I don't think it applies to
Hi,
I get the following compile error with this function below:
source\mod_data\matrices.d(66,12): Error: cannot implicitly
convert expression (j) of type ulong to uint
(66,12) is [j] in row[j]
Using uint as type for rows, cols (i.e. the indices) works. Is
ulong not allowed for array indices
35 matches
Mail list logo