Re: Member function passed through template alias only requiring `this` in certain conditions?

2018-07-19 Thread Timoses via Digitalmars-d-learn
On Thursday, 19 July 2018 at 22:16:22 UTC, Ali Çehreli wrote: On 07/19/2018 08:12 AM, Emma wrote: > [...] > If I try to compile it, dmd complains, which I guess makes sense: > > --- > Error: need this for bar of type void() > Error: need this for baz of type void() > --- > > [...] I think it's

DIP1016--ref T accepts r-values--Community Review Round 1 Begins

2018-07-19 Thread Mike Parker via Digitalmars-d-announce
The first round of Community Review for DIP 1016, "ref T accepts r-values", has begun. To participate, please visit the review thread for the details: https://forum.dlang.org/post/xoiyfeudgibxtbywx...@forum.dlang.org *Please leave all feedback in the review thread rather than here!* Thanks!

DIP 1016--ref T accepts r-values--Community Review Round 1

2018-07-19 Thread Mike Parker via Digitalmars-d
This is the feedback thread for the first round of Community Review for DIP 1016, "ref T accepts r-values": https://github.com/dlang/DIPs/blob/725541d69149bc85a9492f7df07360f8e2948bd7/DIPs/DIP1016.md All review-related feedback on and discussion of the DIP should occur in this thread. The

Re: Windows 64-bit import library

2018-07-19 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: I don't have MSVC, so I built it using mingw, which generated a .a lib. I shall google some more, as I understand it DMD -m64 uses Mingw libs as a fall back when MSVC not found, I compiled Lua using mingw, I can't be too much

Re: Windows 64-bit import library

2018-07-19 Thread Jordan Wilson via Digitalmars-d-learn
On Friday, 20 July 2018 at 01:34:39 UTC, Mike Parker wrote: On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate lib? Else I think I'll need to get hold of the proper import libs that come with the Lua distribution. Lua is

Re: Windows 64-bit import library

2018-07-19 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate lib? Else I think I'll need to get hold of the proper import libs that come with the Lua distribution. Lua is extremely easy to build. That will generate the import lib for

[Issue 19103] Can imports symbols in module to a struct with mixin.

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19103 Seb changed: What|Removed |Added CC||greeen...@gmail.com --- Comment #1 from Seb --- >

throwing lots of resources at a GC

2018-07-19 Thread John Belmonte via Digitalmars-d
Interesting (and way too detailed for me) tale of GC adventures in golang: https://blog.golang.org/ismmkeynote

multiple alias this

2018-07-19 Thread Mr.Bingo via Digitalmars-d
An implementation method: Single `alias this` already works, this method leverages it to create a multiple `alias this`. This method is presented for a basic review 1. alias a,b,... this; Is this proposed syntax used for assigning multiple sinks for the dispatching of access '.'

[Issue 19103] New: Can imports symbols in module to a struct with mixin.

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19103 Issue ID: 19103 Summary: Can imports symbols in module to a struct with mixin. Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity:

Re: Member function passed through template alias only requiring `this` in certain conditions?

2018-07-19 Thread Ali Çehreli via Digitalmars-d-learn
On 07/19/2018 08:12 AM, Emma wrote: > void test(alias fn1, alias fn2)() > { > fn1(); > fn2(); > } > > struct Foo > { > void foo() > { > test!(bar, baz); > } > > void bar() > {} > > void baz() > {} > } > --- > > If I try to compile it, dmd

Re: The dub documentation is now on dub.pm

2018-07-19 Thread Jonathan M Davis via Digitalmars-d-announce
On Thursday, July 19, 2018 13:51:25 Seb via Digitalmars-d-announce wrote: > As you mentioned SDL already supports comments. JSON support was > actually only added because too many people complained about SDL > not being properly supported. Actually, originally, dub only supported json. sdl came

Windows 64-bit import library

2018-07-19 Thread Jordan Wilson via Digitalmars-d-learn
I'm trying to create an import library from a dll (in this case, a Lua dll). Using dumpbin, I end up with a .def file: EXPORTS luaL_addlstring luaL_addstring luaL_addvalue luaL_argerror luaL_buffinit ... I then use MS lib tool to generate a lib file: lib /def:lua53.def /out:lua53.lib

[Issue 19100] install.sh signature verification fails, no public key

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19100 Seb changed: What|Removed |Added CC||greensunn...@gmail.com --- Comment #1 from Seb ---

Re: dpp now compiles julia.h headers

2018-07-19 Thread bachmeier via Digitalmars-d-announce
On Friday, 13 July 2018 at 19:02:56 UTC, Laeeth Isharc wrote: Atila Neves' d++ now compiles julia.h. Modulo bugs this makes it possible to embed Julia in D (and probably the other way around, but I have not tried). https://github.com/kaleidicassociates/juliad Related: Everything worked out

[Issue 19075] rt.util.random.Rand48.defaultSeed should prefer RDTSC or mach_absolute_time or QueryPerformanceCounter to ctime.time

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19075 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 19075] rt.util.random.Rand48.defaultSeed should prefer RDTSC or mach_absolute_time or QueryPerformanceCounter to ctime.time

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19075 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/449ef5265e46d57000bfb5a745b2be5856325e1e Fix Issue 19075 - rt.util.random.Rand48.defaultSeed

[Issue 19102] New: [Functions] pure functions repetition

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19102 Issue ID: 19102 Summary: [Functions] pure functions repetition Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

hasUDA with this

2018-07-19 Thread jmh530 via Digitalmars-d-learn
I wanted to create a struct with a member function whose behavior was different depending on whether the struct instance had a particular UDA. However, it seems like hasUDA doesn't seem to produce the result I would have expected here. I tried using getAttributes, but that didn't work

[Issue 19101] New: Miscompilation on extern(C++) overloads with D types

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19101 Issue ID: 19101 Summary: Miscompilation on extern(C++) overloads with D types Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major

[Issue 19100] New: install.sh signature verification fails, no public key

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19100 Issue ID: 19100 Summary: install.sh signature verification fails, no public key Product: D Version: D2 Hardware: x86 OS: Windows Status: NEW Severity:

Re: Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread kinke via Digitalmars-d-learn
On Thursday, 19 July 2018 at 12:44:30 UTC, Radu wrote: --- int foo() { import std.algorithm, std.range; auto r = 100.iota.stride(2).take(5); return r.sum(); } --- ldc2 -mtriple=wasm32-unknown-unknown-wasm -betterC -link-internally -L-allow-undefined -release -Os wasm.d

Re: I can has @nogc and throw Exceptions?

2018-07-19 Thread timotheecour via Digitalmars-d-learn
On Friday, 13 February 2015 at 19:03:10 UTC, Jonathan Marler wrote: This question comes from wanting to be able to throw an exception in code that is @nogc. https://dlang.org/changelog/2.079.0.html#dip1008 ```d void main() @nogc { throw new Exception("I'm @nogc now"); } ```

[Issue 19003] format!"" breaks with structs containing invariants violated in .init

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19003 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/65ca2aef50e588a7c09ef4e88d0bbc4391d80293 Add unittest for issue #19003

[Issue 19075] rt.util.random.Rand48.defaultSeed should prefer RDTSC or mach_absolute_time or QueryPerformanceCounter to ctime.time

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19075 Nathan S. changed: What|Removed |Added Summary|rt.util.random.Rand48.defau |rt.util.random.Rand48.defau

Re: Trying to use the libclang Dub package

2018-07-19 Thread bachmeier via Digitalmars-d-learn
On Thursday, 19 July 2018 at 14:21:51 UTC, bachmeier wrote: [...] .dub/build/unittest-unittest-linux.posix-x86_64-dmd_2081-A8A607969A46E4CDF45479E7A30874E9/ut.o: In function `_D5parse3raw17__unittest_L64_C9FZ12__dgliteral1MFNaNbNiNfZk':

Member function passed through template alias only requiring `this` in certain conditions?

2018-07-19 Thread Emma via Digitalmars-d-learn
Hello, I’ve got this piece of code: --- import std.stdio; void test(alias fn1, alias fn2)() { fn1(); fn2(); } struct Foo { void foo() { test!(bar, baz); } void bar() {} void baz() {} } --- If I try to compile it, dmd complains, which I guess

Re: Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread Seb via Digitalmars-d-learn
On Thursday, 19 July 2018 at 12:44:30 UTC, Radu wrote: Just tried something similar with new LDC Webassembly support [1] and it fails to compile ... This is a prime example of stuff that should just workTM on targets like that. I would like to submit some fixes but I think there needs to be

[Issue 19095] Static initiatization statements of an array appeared in different kind of scopes have inconsistent semantics

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19095 Basile B. changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|INVALID

Trying to use the libclang Dub package

2018-07-19 Thread bachmeier via Digitalmars-d-learn
I haven't been able to get dpp to build. I've discovered that the problem is with libclang. It installs, but when running the tests, I get the lengthy message below. Obviously I need to install something (running Ubuntu 16.04) but I've got numerous libclang related packages installed already

Re: Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread Seb via Digitalmars-d-learn
On Thursday, 19 July 2018 at 12:40:09 UTC, Zheng (Vic) Luo wrote: On Thursday, 19 July 2018 at 11:35:00 UTC, Seb wrote: Well, since 2.079 it's actually possible to use D without a dependency any runtime (even libc): https://dlang.org/changelog/2.079.0.html#minimal_runtime Also with

Re: The dub documentation is now on dub.pm

2018-07-19 Thread Seb via Digitalmars-d-announce
On Thursday, 19 July 2018 at 13:10:01 UTC, Martin Tschierschke wrote: There should be a big section for well done dub.sdl / dub.json examples. Yes, there should be! As always it just requires someone to step up, collect and add these examples. FWIW the dub and vibe.d repositories both contain

Re: The dub documentation is now on dub.pm

2018-07-19 Thread aliak via Digitalmars-d-announce
On Thursday, 19 July 2018 at 13:10:01 UTC, Martin Tschierschke wrote: On Thursday, 19 July 2018 at 09:39:04 UTC, Seb wrote: [...] Very ++ :-) There should be a big section for well done dub.sdl / dub.json examples. What about defining "comment" as an special keyword for the .json parser

Re: Configuring DerelictGL3

2018-07-19 Thread Entity325 via Digitalmars-d-learn
On Thursday, 19 July 2018 at 09:41:34 UTC, Mike Parker wrote: Are you doing all of that in the main thread, or a separate one? It's all on a separate thread, but I checked every single reference I could find after posting yesterday, and the OGL context is never referenced outside of the

Re: The dub documentation is now on dub.pm

2018-07-19 Thread Martin Tschierschke via Digitalmars-d-announce
On Thursday, 19 July 2018 at 09:39:04 UTC, Seb wrote: tl;dr: The dub documentation got split from the dub-registry repository and now lives on https://dub.pm (https://github.com/dlang/dub-docs). Motivation: --- - makes building the dub-registry faster - people hosting a mirror or a

[Issue 19089] Compiler crash for using struct

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19089 uplink.co...@googlemail.com changed: What|Removed |Added Assignee|nob...@puremagic.com|uplink.co...@googlemail.com

[Issue 19089] Compiler crash for using struct

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19089 uplink.co...@googlemail.com changed: What|Removed |Added CC||uplink.co...@googlemail.com

Re: Sutter's ISO C++ Trip Report - The best compliment is when someone else steals your ideas....

2018-07-19 Thread Paolo Invernizzi via Digitalmars-d
On Thursday, 19 July 2018 at 09:44:16 UTC, Steven Schveighoffer wrote: On 7/18/18 1:58 AM, John Carter wrote: With web services, most of the time the shared state you want elsewhere anyway (to make it persistent), so it's a better fit for processes than most program domains. Sharing a

[Issue 19094] Anchored section does not exist in std.uni.normalize phobos documentation

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19094 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 19094] Anchored section does not exist in std.uni.normalize phobos documentation

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19094 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/dlang/phobos https://github.com/dlang/phobos/commit/91659e60fe4befe69d7cb3a6bdbfd5c839adbac4 fix issue 19094 - Anchored section does not exist in

Re: Disabling struct destructor illegal?

2018-07-19 Thread Jonathan M Davis via Digitalmars-d-learn
On Thursday, July 19, 2018 10:04:34 RazvanN via Digitalmars-d-learn wrote: > I just don't understand why you would ever mark the destructor of > a struct with @disable. When is that useful? If it's not, why not > just forbit it? There's nothing special about destructors here. You can @disable any

Re: Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread Zheng Luo (Vic) via Digitalmars-d-learn
On Thursday, 19 July 2018 at 11:35:00 UTC, Seb wrote: Well, since 2.079 it's actually possible to use D without a dependency any runtime (even libc): https://dlang.org/changelog/2.079.0.html#minimal_runtime Also with -betterC you can actually use lots of things from core that don't depend

Re: Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread Radu via Digitalmars-d-learn
On Thursday, 19 July 2018 at 11:35:00 UTC, Seb wrote: On Thursday, 19 July 2018 at 10:27:36 UTC, Zheng (Vic) Luo wrote: Current implementation of d-runtime relies on a lot of symbols from libc, librt, libpthread, which makes it hard to create a minimal runtime used for embedded devices.

[Issue 19099] New: Struct with field that has postblit or destructor makes struct assignable

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19099 Issue ID: 19099 Summary: Struct with field that has postblit or destructor makes struct assignable Product: D Version: D2 Hardware: x86_64 OS: Linux

[Issue 19095] Static initiatization statements of an array appeared in different kind of scopes have inconsistent semantics

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19095 --- Comment #4 from Hiroki Noda --- Thank you for the explanations, yes, the title of the report is not correct. I am still not convinced that the global array initialization has been successful in this case. (Attemptive PR :

Re: taskPool.reduce vs algorithm.reduce

2018-07-19 Thread Malte via Digitalmars-d-learn
On Wednesday, 11 July 2018 at 10:07:33 UTC, Timoses wrote: On Wednesday, 11 July 2018 at 08:31:30 UTC, Dorian Haglund wrote: [...] As the error message says taskPool.reduce is a non-global template. It's embedded in a taskPool struct. I can't say what the reason is that a delegate cannot be

Re: Disabling struct destructor illegal?

2018-07-19 Thread Simen Kjærås via Digitalmars-d-learn
On Thursday, 19 July 2018 at 10:04:34 UTC, RazvanN wrote: I just don't understand why you would ever mark the destructor of a struct with @disable. When is that useful? If it's not, why not just forbit it? struct S1 { ~this() { /* stuff */ } } struct S2 { S1 s; @disable ~this();

Re: Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread Seb via Digitalmars-d-learn
On Thursday, 19 July 2018 at 10:27:36 UTC, Zheng (Vic) Luo wrote: Current implementation of d-runtime relies on a lot of symbols from libc, librt, libpthread, which makes it hard to create a minimal runtime used for embedded devices. Although there are some unofficial minimal versions of

Re: opCmp / opEquals do not actually support partial orders

2018-07-19 Thread Simen Kjærås via Digitalmars-d
On Thursday, 19 July 2018 at 10:14:34 UTC, Dominikus Dittes Scherkl wrote: On Wednesday, 18 July 2018 at 17:30:21 UTC, Jonathan M Davis wrote: On Tuesday, July 17, 2018 21:18:12 John Colvin via Digitalmars-d wrote: Just do what std.typecons.Proxy does and return float.nan for the incomparable

[Issue 19098] Improve error for non-assignable struct

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19098 --- Comment #1 from RazvanN --- PR: https://github.com/dlang/dmd/pull/8506 --

[Issue 19098] New: Improve error for non-assignable struct

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19098 Issue ID: 19098 Summary: Improve error for non-assignable struct Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: trivial

Is there any plan for a dependency-free subset of "core" runtime?

2018-07-19 Thread Zheng Luo (Vic) via Digitalmars-d-learn
Current implementation of d-runtime relies on a lot of symbols from libc, librt, libpthread, which makes it hard to create a minimal runtime used for embedded devices. Although there are some unofficial minimal versions of d-runtime, many of them lack maintenance and outdates rapidly. I was

Re: opCmp / opEquals do not actually support partial orders

2018-07-19 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Wednesday, 18 July 2018 at 17:49:19 UTC, H. S. Teoh wrote: On Wed, Jul 18, 2018 at 11:30:21AM -0600, Jonathan M Davis via On the other hand, if opCmp is allowed to return a user-defined type, it would solve the problem in a neat way: just define a quaternary type that encapsulates the

Re: opCmp / opEquals do not actually support partial orders

2018-07-19 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Wednesday, 18 July 2018 at 17:30:21 UTC, Jonathan M Davis wrote: On Tuesday, July 17, 2018 21:18:12 John Colvin via Digitalmars-d wrote: Just do what std.typecons.Proxy does and return float.nan for the incomparable case. Since when is that legal? I thought that it was required for opCmp

Re: Disabling struct destructor illegal?

2018-07-19 Thread RazvanN via Digitalmars-d-learn
On Thursday, 19 July 2018 at 09:50:32 UTC, Jim Balter wrote: On Thursday, 19 July 2018 at 08:50:15 UTC, RazvanN wrote: struct A { int a; @disable ~this() {} } void main() { A a = A(2); } Currently, this code yields: Error: destructor `A.~this` cannot be used because it is

Re: Disabling struct destructor illegal?

2018-07-19 Thread Jim Balter via Digitalmars-d-learn
On Thursday, 19 July 2018 at 08:50:15 UTC, RazvanN wrote: struct A { int a; @disable ~this() {} } void main() { A a = A(2); } Currently, this code yields: Error: destructor `A.~this` cannot be used because it is annotated with @disable I was expecting that disabling the

Re: Sutter's ISO C++ Trip Report - The best compliment is when someone else steals your ideas....

2018-07-19 Thread Steven Schveighoffer via Digitalmars-d
On 7/18/18 1:58 AM, John Carter wrote: On Friday, 13 July 2018 at 13:15:39 UTC, Steven Schveighoffer wrote: But it doesn't scale if you use OS processes, it's too heavyweight. Of course, it depends on the application. If you only need 100 concurrent connections, processes might be OK. I

Re: Configuring DerelictGL3

2018-07-19 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 July 2018 at 00:27:58 UTC, Entity325 wrote: So I'm using the standard process: DerelictGL3.load(); glContext = SDL_GL_CreateContext(sdlWindow); GLVersion glVersion = DerelictGL3.reload(); About 1/3 of the time, the program hangs on the 3rd line and never gets past it.

The dub documentation is now on dub.pm

2018-07-19 Thread Seb via Digitalmars-d-announce
tl;dr: The dub documentation got split from the dub-registry repository and now lives on https://dub.pm (https://github.com/dlang/dub-docs). Motivation: --- - makes building the dub-registry faster - people hosting a mirror or a private instance don't need to host the documentation

Disabling struct destructor illegal?

2018-07-19 Thread RazvanN via Digitalmars-d-learn
struct A { int a; @disable ~this() {} } void main() { A a = A(2); } Currently, this code yields: Error: destructor `A.~this` cannot be used because it is annotated with @disable I was expecting that disabling the destructor would make it as if the struct does not have a

Re: Implicit conversion of struct with methods to immutable in pure function fails

2018-07-19 Thread Timoses via Digitalmars-d-learn
On Thursday, 19 July 2018 at 06:35:36 UTC, Simen Kjærås wrote: On Wednesday, 18 July 2018 at 11:28:54 UTC, Timoses wrote: But why is a context pointer a problem? Is it problematic because the context pointer to the main scope can not guarantee `immutable`? E.g. if I happened to use data from

[Issue 18563] context pointer inside structs constness problems

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=18563 Timoses changed: What|Removed |Added CC||timos...@gmail.com --- Comment #1 from Timoses

[Issue 19097] Extend Return Scope Semantics

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19097 --- Comment #1 from Walter Bright --- https://github.com/dlang/dmd/pull/8504 --

Re: std.experimental.collections.rcstring and its integration in Phobos

2018-07-19 Thread Radu via Digitalmars-d
On Wednesday, 18 July 2018 at 22:44:33 UTC, aliak wrote: On Wednesday, 18 July 2018 at 12:10:04 UTC, Seb wrote: On Wednesday, 18 July 2018 at 03:40:08 UTC, Jon Degenhardt [...] [...] That point is still open for discussion, but at the moment rcstring isn't a range and the user has to

[Issue 19097] New: Extend Return Scope Semantics

2018-07-19 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=19097 Issue ID: 19097 Summary: Extend Return Scope Semantics Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P1

Re: Implicit conversion of struct with methods to immutable in pure function fails

2018-07-19 Thread Simen Kjærås via Digitalmars-d-learn
On Wednesday, 18 July 2018 at 11:28:54 UTC, Timoses wrote: But why is a context pointer a problem? Is it problematic because the context pointer to the main scope can not guarantee `immutable`? E.g. if I happened to use data from main in a function of the immutable struct then... well then

Re: New to GDC on ARM 32-bit Ubuntu

2018-07-19 Thread Johannes Pfau via Digitalmars-d-learn
Am Tue, 17 Jul 2018 04:51:04 + schrieb Cecil Ward: > I am getting an error when I try and compile anything with the GDC > compiler which is coming up associated with source code within a D > include file which is not one of mine > > I am using a Raspberry Pi with Ubuntu 16.04 and have just