zig

2017-09-08 Thread Daniel N via Digitalmars-d
I was just reading the LLVM release notes. Looks quite interesting, did anyone try it? http://ziglang.org/

Re: C `restrict` keyword in D

2017-09-08 Thread Dukc via Digitalmars-d
On Wednesday, 6 September 2017 at 17:30:44 UTC, Dukc wrote: See David Simcha's talk at DConf 13 at 37:30, that's the basic idea how I'm thinking the range would internally iterate. Correction: The outer loop would iterate in steps like that but the body would be different. It would each time c

Re: Templates, D way

2017-09-08 Thread Corey Lubin via Digitalmars-d
On Tuesday, 5 September 2017 at 12:41:45 UTC, Computermatronic wrote: I find it very strange that this works, as a non-mixin template should not be able to capture the context of where it was instantiated. If you take the alias template parameters out it behaves how it should (that is an erro

Re: Iteration over structure fields and properties

2017-09-08 Thread Jacob Carlborg via Digitalmars-d
On 2017-09-07 09:22, Void-995 wrote: Would it work with: @property int propertyNameA() No, for that you need the traits getFunctionAttributes [1] (I think all functions are returned) and getFunctionAttributes [2]. And how to get key names then? As I remember tupleof return tuple of fields

Re: Templates, D way

2017-09-08 Thread Corey Lubin via Digitalmars-d
On Friday, 8 September 2017 at 10:27:57 UTC, Corey Lubin wrote: On Tuesday, 5 September 2017 at 12:41:45 UTC, Computermatronic wrote: I find it very strange that this works, as a non-mixin template should not be able to capture the context of where it was instantiated. If you take the alias t

Re: zig

2017-09-08 Thread kinke via Digitalmars-d
On Friday, 8 September 2017 at 08:07:25 UTC, Daniel N wrote: I was just reading the LLVM release notes. Looks quite interesting, did anyone try it? http://ziglang.org/ I noticed it too in the release notes, browsed to the page, scrolled down to the first code samples and was immediately put

Expression transformation by symbol name

2017-09-08 Thread Dominic Jones via Digitalmars-d
Hello, Is there a way in D of applying a transform function to the following expressions at compile-time such that the first is modified and the second left unchanged? Where 'a' and 'b' are of the same type: 1. "transform(a * a)" returns an object to evaluate "2 * a" 2. "transform(a * b)" ret

Re: Expression transformation by symbol name

2017-09-08 Thread Dominic Jones via Digitalmars-d
On Friday, 8 September 2017 at 13:15:51 UTC, Dominic Jones wrote: Where 'a' and 'b' are of the same type: 1. "transform(a * a)" returns an object to evaluate "2 * a" 2. "transform(a * b)" returns an object to evaluate "a * b" 1. "transform(a + a)" returns an object to evaluate "2 * a" 2. "trans

ZipException: no end record when attempting dub fetch vibelog

2017-09-08 Thread Kevin McTaggart via Digitalmars-d
Once again, I'm taking a serious look at D after a break of 3 years. I'm trying to download packages using dub from DMD 2.076 as follows: dub fetch vibelog The following error is produced: ZipException: no end record Any suggestions?

Re: ZipException: no end record when attempting dub fetch vibelog

2017-09-08 Thread colin via Digitalmars-d
On Friday, 8 September 2017 at 13:33:42 UTC, Kevin McTaggart wrote: Once again, I'm taking a serious look at D after a break of 3 years. I'm trying to download packages using dub from DMD 2.076 as follows: dub fetch vibelog The following error is produced: ZipException: no end record Any s

Re: zig

2017-09-08 Thread bitwise via Digitalmars-d
On Friday, 8 September 2017 at 12:37:52 UTC, kinke wrote: On Friday, 8 September 2017 at 08:07:25 UTC, Daniel N wrote: I was just reading the LLVM release notes. Looks quite interesting, did anyone try it? http://ziglang.org/ I noticed it too in the release notes, browsed to the page, scroll

Re: dub projects generate docs and host on code.dlang.org?

2017-09-08 Thread Manu via Digitalmars-d
On 7 September 2017 at 00:17, Adam D. Ruppe via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Wednesday, 6 September 2017 at 14:04:56 UTC, Vadim Lopatin wrote: > >> Having automatically updated docs hosted on code.dlang.org will motivate >> package developers to write better ddoc commen