Re: Emacs d-mode indentation, 2 spaces to 4?

2017-10-04 Thread Ali Çehreli via Digitalmars-d-learn
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.

Emacs d-mode indentation, 2 spaces to 4?

2017-10-04 Thread John Gabriele via Digitalmars-d-learn
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?

[Issue 17635] [REG 2.066.0] cannot convert unique immutable(int)** to immutable

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17635 --- Comment #7 from Walter Bright --- The trouble with the getIndirection() is that passing a type: int* and: struct S { int* p; } behave differently. The first passes 'int' to traverseIndirections(), losing the *,

[Issue 17635] [REG 2.066.0] cannot convert unique immutable(int)** to immutable

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17635 --- Comment #6 from David Nadlinger --- (In reply to David Nadlinger from comment #5) > After a quick glance, I'm not sure whether this is indeed what is at fault > here. If it was indeed getIndirection() that was at fault,

[Issue 17635] [REG 2.066.0] cannot convert unique immutable(int)** to immutable

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17635 David Nadlinger changed: What|Removed |Added CC||c...@klickverbot.at

Re: Imports

2017-10-04 Thread Mike Parker via Digitalmars-d-learn
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

Iterating over functions in module in order?

2017-10-04 Thread Jerry via Digitalmars-d-learn
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?

[Issue 17635] [REG 2.066.0] cannot convert unique immutable(int)** to immutable

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17635 --- Comment #4 from Walter Bright --- Bug introduced by: https://github.com/dlang/dmd/commit/f3b5817a3542f4fa4eb4a6e70658854e0d8e4aa3#diff-43282ebf5a2de5fdbcb3b5083ddf949dR3127 --

Re: Should we add `a * b` for vectors?

2017-10-04 Thread Walter Bright via Digitalmars-d
On 10/4/2017 3:35 PM, Petar Kirov [ZombineDev] wrote: On Wednesday, 4 October 2017 at 17:56:16 UTC, Walter Bright wrote: On 10/4/2017 2:28 AM, Dukc wrote: But you can't deny our solution eats expressive power: If you don't want to change code you're importing, you have to write a wrapper type

[Issue 17635] [REG 2.066.0] cannot convert unique immutable(int)** to immutable

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17635 --- Comment #3 from Walter Bright --- I found one of the problems in getIndirection() in func.d: extern (C++) Type getIndirection(Type t) { t = t.baseElemOf(); if (t.ty == Tarray || t.ty == Tpointer)

Re: Should we add `a * b` for vectors?

2017-10-04 Thread Petar via Digitalmars-d
On Wednesday, 4 October 2017 at 17:56:16 UTC, Walter Bright wrote: On 10/4/2017 2:28 AM, Dukc wrote: But you can't deny our solution eats expressive power: If you don't want to change code you're importing, you have to write a wrapper type for int[] here. Please present an example. I think

Re: Proposal: Object/?? Destruction

2017-10-04 Thread aberba via Digitalmars-d
On Wednesday, 4 October 2017 at 12:06:43 UTC, John Colvin wrote: On Wednesday, 4 October 2017 at 10:03:56 UTC, aberba wrote: Upon reading this, It triggered an idea. People often call this "destructuring" or "unpacking" to avoid confusion with destructors. Thats the word I was looking

[Issue 17877] New: Missing library path in LDC settings

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17877 Issue ID: 17877 Summary: Missing library path in LDC settings Product: D Version: D2 Hardware: x86_64 OS: Windows Status: NEW Severity: normal

Re: Andrei's "The D Programming Language" book. Up to date?

2017-10-04 Thread Ali Çehreli via Digitalmars-d-learn
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

Re: What the hell is wrong with D?

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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

Andrei's "The D Programming Language" book. Up to date?

2017-10-04 Thread John Gabriele via Digitalmars-d-learn
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

Re: Should we add `a * b` for vectors?

2017-10-04 Thread Andrei Alexandrescu via Digitalmars-d
On 10/02/2017 07:15 AM, Timon Gehr wrote: If there are multiple definitions of the same name, different modules might not agree which one is being referred to. (This is particularly likely for overloaded operators, as the set of names is finite and small. This is what Manu means when he says

[Issue 17876] [REG 2.074] Internal error when comparing inout(Foo[][]) with Foo[][]

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17876 ag0ae...@gmail.com changed: What|Removed |Added Keywords||ice CC|

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread lithium iodate via Digitalmars-d-learn
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

[Issue 17876] Internal error with red black tree of array of arrays

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17876 --- Comment #1 from Christian Durán --- Probably just needs a better error message because it seems to happen because there's no ordering for the type. --

[Issue 17876] New: Internal error with red black tree of array of arrays

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17876 Issue ID: 17876 Summary: Internal error with red black tree of array of arrays Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: normal

[Issue 17868] add pragma(crt_con/destructor[, priority])

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17868 --- Comment #6 from Martin Nowak --- (In reply to Rainer Schuetze from comment #4) > This enables "system programming" by not adding every special case to the > compiler as it is done so far. It's a common enough use case to warrant a

Re: Does writing from NNTP work?

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread Jesse Phillips via Digitalmars-d-learn
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...

Re: Does writing from NNTP work?

2017-10-04 Thread Jonathan M Davis via Digitalmars-d-learn
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

Re: Proposal: Object/?? Destruction

2017-10-04 Thread Ali Çehreli via Digitalmars-d
On 10/04/2017 05:06 AM, John Colvin wrote: > People often call this "destructuring" Thanks! Now it makes sense. :) Ali

Re: Should we add `a * b` for vectors?

2017-10-04 Thread Walter Bright via Digitalmars-d
On 10/4/2017 2:28 AM, Dukc wrote: But you can't deny our solution eats expressive power: If you don't want to change code you're importing, you have to write a wrapper type for int[] here. Please present an example.

Re: Proposal: Object/?? Destruction

2017-10-04 Thread bitwise via Digitalmars-d
On Wednesday, 4 October 2017 at 12:06:43 UTC, John Colvin wrote: [...] People often call this "destructuring" or "unpacking" to avoid confusion with destructors. Or "Structured Bindings" ;) http://en.cppreference.com/w/cpp/language/structured_binding

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread jmh530 via Digitalmars-d-learn
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

Re: Looking for a mentor in D

2017-10-04 Thread Ali Çehreli via Digitalmars-d-learn
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.)

[Issue 17869] scope class object no longer deleted when created via factory function

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17869 Ketmar Dark changed: What|Removed |Added CC|

Re: Looking for a mentor in D

2017-10-04 Thread Jesse Phillips via Digitalmars-d-learn
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.

Imports

2017-10-04 Thread Jiyan via Digitalmars-d-learn
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

Re: Vibe.d using Windows Certificate binding, possible?

2017-10-04 Thread Jesse Phillips via Digitalmars-d-learn
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

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread Ali Çehreli via Digitalmars-d-learn
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

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread Ali Çehreli via Digitalmars-d-learn
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

[Issue 17868] add pragma(crt_con/destructor[, priority])

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17868 --- Comment #5 from Steven Schveighoffer --- I've changed my mind a bit on this. It's OK to have a pragma that allows stuffing function pointers into a section for compiler purposes, obviously we already have custom pragmas

Re: Does writing from NNTP work?

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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.

Re: ASDF v0.1.5-beta0: new parser is ~40% faster

2017-10-04 Thread drug via Digitalmars-d-announce
04.10.2017 17:19, Daniel Kozák пишет: sajson loops are manually unrolled already. Very aggressive optimisation makes no sense and may unroll loops additionally and slowdown the program https://github.com/tamediadigital/asdf/pull/79

Re: Does writing from NNTP work?

2017-10-04 Thread ketmar via Digitalmars-d-learn
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"

Re: Looking for a mentor in D

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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

Re: Looking for a mentor in D

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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

Re: Does writing from NNTP work?

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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. :)

Re: Does writing from NNTP work?

2017-10-04 Thread Andrea Fontana via Digitalmars-d-learn
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 :)

Re: Does writing from NNTP work?

2017-10-04 Thread ketmar via Digitalmars-d-learn
Tristan B. Kildaire wrote: Does this work? if you can see this reply, it works.

Re: Does writing from NNTP work?

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
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.

Re: ASDF v0.1.5-beta0: new parser is ~40% faster

2017-10-04 Thread Daniel Kozák via Digitalmars-d-announce
On Wednesday, 4 October 2017 at 14:04:30 UTC, Nicholas Wilson wrote: On Wednesday, 4 October 2017 at 13:15:17 UTC, Ilya Yaroshenko wrote: On Wednesday, 4 October 2017 at 12:11:54 UTC, Kagamin wrote: On Sunday, 1 October 2017 at 14:38:04 UTC, Ilya Yaroshenko wrote: [1]

Does writing from NNTP work?

2017-10-04 Thread Tristan B. Kildaire via Digitalmars-d-learn
Does this work?

Re: ASDF v0.1.5-beta0: new parser is ~40% faster

2017-10-04 Thread Nicholas Wilson via Digitalmars-d-announce
On Wednesday, 4 October 2017 at 13:15:17 UTC, Ilya Yaroshenko wrote: On Wednesday, 4 October 2017 at 12:11:54 UTC, Kagamin wrote: On Sunday, 1 October 2017 at 14:38:04 UTC, Ilya Yaroshenko wrote: [1] https://github.com/tamediadigital/asdf/tree/master/benchmarks/sajson AFAIK, ldc translates

[Issue 17415] std.conv.emplace does not forward arguments correctly

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17415 --- Comment #2 from Eduard Staniloiu --- I might be wrong, but since you are disabling the postblit wouldn't you want to define the class ctor as: class C { this(const ref S) { /* magic */ } } --

Re: ASDF v0.1.5-beta0: new parser is ~40% faster

2017-10-04 Thread Ilya Yaroshenko via Digitalmars-d-announce
On Wednesday, 4 October 2017 at 12:11:54 UTC, Kagamin wrote: On Sunday, 1 October 2017 at 14:38:04 UTC, Ilya Yaroshenko wrote: [1] https://github.com/tamediadigital/asdf/tree/master/benchmarks/sajson AFAIK, ldc translates dmd's -O option to llvm's -O3. sajson loops are manually unrolled

Re: ASDF v0.1.5-beta0: new parser is ~40% faster

2017-10-04 Thread Kagamin via Digitalmars-d-announce
On Sunday, 1 October 2017 at 14:38:04 UTC, Ilya Yaroshenko wrote: [1] https://github.com/tamediadigital/asdf/tree/master/benchmarks/sajson AFAIK, ldc translates dmd's -O option to llvm's -O3.

Re: Proposal: Object/?? Destruction

2017-10-04 Thread John Colvin via Digitalmars-d
On Wednesday, 4 October 2017 at 10:03:56 UTC, aberba wrote: Upon reading this, It triggered an idea. On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler wrote: https://wiki.dlang.org/DIP88 I'd like to see DIP88 (Named Parameters) revived. Was this proposal rejected or is it

Re: Proposal: Object/?? Destruction

2017-10-04 Thread SrMordred via Digitalmars-d
On Wednesday, 4 October 2017 at 10:03:56 UTC, aberba wrote: Upon reading this, It triggered an idea. On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler wrote: [...] DIP reminds me of object destruction. /* extracts success & message from returned type. Could be tuple or

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread Biotronic via Digitalmars-d-learn
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

Re: Proposal: Object/?? Destruction

2017-10-04 Thread Ilya Yaroshenko via Digitalmars-d
On Wednesday, 4 October 2017 at 10:03:56 UTC, aberba wrote: auto {success, message} = callVoldermortFunction(); ❤ I want this syntax, plz! This solves the issue how to return multiple ref values. --Ilya

Proposal: Object/?? Destruction

2017-10-04 Thread aberba via Digitalmars-d
Upon reading this, It triggered an idea. On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler wrote: https://wiki.dlang.org/DIP88 I'd like to see DIP88 (Named Parameters) revived. Was this proposal rejected or is it just stale and needs a refresh? Named parameters can be

Re: How to implement `isTemplate` traits?

2017-10-04 Thread drug via Digitalmars-d-learn
04.10.2017 12:54, Biotronic пишет: template isTemplate(T...) if (T.length == 1) {     enum isTemplate = __traits(isTemplate, T[0]); } --   Biotronic Thank you!

Re: Proposal: Object/?? Destruction

2017-10-04 Thread aberba via Digitalmars-d-announce
On Wednesday, 4 October 2017 at 09:52:39 UTC, aberba wrote: Upon reading this, It triggered an idea. On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler wrote: [...] Upon reading the DIP, it reminds me of object destruction. // extracts success & message from returned type.

Re: How to implement `isTemplate` traits?

2017-10-04 Thread Biotronic via Digitalmars-d-learn
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

Proposal: Object/?? Destruction

2017-10-04 Thread aberba via Digitalmars-d-announce
Upon reading this, It triggered an idea. On Saturday, 30 September 2017 at 16:10:44 UTC, Jonathan Marler wrote: https://wiki.dlang.org/DIP88 I'd like to see DIP88 (Named Parameters) revived. Was this proposal rejected or is it just stale and needs a refresh? Named parameters can be

Re: ASDF v0.1.5-beta0: new parser is ~40% faster

2017-10-04 Thread Atila Neves via Digitalmars-d-announce
On Sunday, 1 October 2017 at 14:38:04 UTC, Ilya Yaroshenko wrote: Hello, About ASDF - ASDF [3] is a cache oriented string based JSON representation. Besides, it is a convenient Json Library for D that gets out of your way. ASDF is specially geared towards transforming high

How to implement `isTemplate` traits?

2017-10-04 Thread drug via Digitalmars-d-learn
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

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread Atila Neves via Digitalmars-d-learn
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

Re: Should we add `a * b` for vectors?

2017-10-04 Thread Dukc via Digitalmars-d
On Tuesday, 3 October 2017 at 19:25:32 UTC, Walter Bright wrote: This is specifically designed to prevent nasty surprises. C++ has a big problem with ADL in that overloading is not encapsulated and any #included header can inadvertently add more overloads that may be entirely unrelated. Any .h

Re: conversion error related to array index

2017-10-04 Thread Jonathan M Davis via Digitalmars-d-learn
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] > >

Re: For fun: Expressive C++ 17 Coding Challenge in D

2017-10-04 Thread Biotronic via Digitalmars-d-learn
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

conversion error related to array index

2017-10-04 Thread thorstein via Digitalmars-d-learn
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

Re: gdc is in

2017-10-04 Thread Daniel Kozak via Digitalmars-d
GCC 8 Dne 4. 10. 2017 8:10 dopoledne napsal uživatel "Suliman via Digitalmars-d" < digitalmars-d@puremagic.com>: > On Tuesday, 3 October 2017 at 22:00:51 UTC, Joakim wrote: > >> On Wednesday, 21 June 2017 at 15:11:39 UTC, Joakim wrote: >> >>> the gcc tree: >>> >>>

[Issue 17875] New: Range violation in std.regex

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17875 Issue ID: 17875 Summary: Range violation in std.regex Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity: normal Priority: P1

[Issue 17868] add pragma(crt_con/destructor[, priority])

2017-10-04 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=17868 Rainer Schuetze changed: What|Removed |Added CC||r.sagita...@gmx.de

Re: gdc is in

2017-10-04 Thread Suliman via Digitalmars-d
On Tuesday, 3 October 2017 at 22:00:51 UTC, Joakim wrote: On Wednesday, 21 June 2017 at 15:11:39 UTC, Joakim wrote: the gcc tree: https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html Congratulations to Iain and the gdc team. :) I found out because it's on the front page of HN right now, where

Re: gdc is in

2017-10-04 Thread Per Nordlöw via Digitalmars-d
On Tuesday, 3 October 2017 at 22:00:51 UTC, Joakim wrote: On Wednesday, 21 June 2017 at 15:11:39 UTC, Joakim wrote: the gcc tree: https://gcc.gnu.org/ml/gcc/2017-06/msg00111.html Congratulations to Iain and the gdc team. :) I found out because it's on the front page of HN right now, where