[Issue 15567] local import hijacking

2016-01-21 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15567 hst...@quickfur.ath.cx changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: local import hijacking

2016-01-18 Thread deadalnix via Digitalmars-d
On Monday, 18 January 2016 at 13:17:54 UTC, Martin Nowak wrote: On Thursday, 14 January 2016 at 16:10:29 UTC, Andrei Alexandrescu wrote: local symbols can hide global symbols Correct. The implicitly introduced locals are the problem. Can anyone on the compiler team work on this? -- Andrei

Re: local import hijacking

2016-01-18 Thread Martin Nowak via Digitalmars-d
On Thursday, 14 January 2016 at 16:10:29 UTC, Andrei Alexandrescu wrote: local symbols can hide global symbols Correct. The implicitly introduced locals are the problem. Can anyone on the compiler team work on this? -- Andrei No, we cannot just jump to anything that pops up on the

Re: local import hijacking

2016-01-18 Thread Jack Stouffer via Digitalmars-d
On Monday, 18 January 2016 at 13:17:54 UTC, Martin Nowak wrote: I think it's time to dedicate a whole release to work on imports. Please do. D is damn lucky that the main problem people think it has is the GC while it's sitting there with a half finished import system.

Re: local import hijacking

2016-01-18 Thread rsw0x via Digitalmars-d
On Monday, 18 January 2016 at 13:26:24 UTC, Jack Stouffer wrote: On Monday, 18 January 2016 at 13:17:54 UTC, Martin Nowak wrote: I think it's time to dedicate a whole release to work on imports. Please do. D is damn lucky that the main problem people think it has is the GC while it's

Re: local import hijacking

2016-01-18 Thread rsw0x via Digitalmars-d
On Thursday, 14 January 2016 at 22:33:51 UTC, H. S. Teoh wrote: On Thu, Jan 14, 2016 at 03:37:54PM -0500, Andrei Alexandrescu via Digitalmars-d wrote: On 01/14/2016 02:10 PM, Joakim wrote: >Wow, can't believe his PR has been sitting unreviewed for 5 >months: >

Re: local import hijacking

2016-01-18 Thread Jack Stouffer via Digitalmars-d
On Monday, 18 January 2016 at 14:01:15 UTC, rsw0x wrote: one of the biggest things D has over C++ is its vastly superior module system. When you compare D's something with C++'s nothing, then the module system in D is infinitely better by definition. Is there a compiled list of issues?

Re: local import hijacking

2016-01-18 Thread Joakim via Digitalmars-d
On Monday, 18 January 2016 at 17:02:07 UTC, Jack Stouffer wrote: On Monday, 18 January 2016 at 14:01:15 UTC, rsw0x wrote: one of the biggest things D has over C++ is its vastly superior module system. When you compare D's something with C++'s nothing, then the module system in D is

Re: local import hijacking

2016-01-18 Thread Timon Gehr via Digitalmars-d
On 01/18/2016 06:02 PM, Jack Stouffer wrote: Is there a compiled list of issues? 1. As deadalnix pointed out, a lack of spec 2. Issue 313 3. Issue 314 4. Issue 10378 These are the biggest IMO. There are probably others I don't know of. https://issues.dlang.org/show_bug.cgi?id=1238

Re: local import hijacking

2016-01-16 Thread Meta via Digitalmars-d
On Saturday, 16 January 2016 at 01:10:21 UTC, Andrei Alexandrescu wrote: We're live! Please review: https://github.com/D-Programming-Language/dmd/pull/5353 Thanks! "All checks have failed" -- Andrei I hoped it would be as simple as rebasing, but either Kenji left that PR unfinished or

Re: local import hijacking

2016-01-16 Thread karabuta via Digitalmars-d
On Thursday, 14 January 2016 at 15:54:02 UTC, Daniel Kozak wrote: V Thu, 14 Jan 2016 16:17:41 +0100 anonymous via Digitalmars-d napsáno: On 14.01.2016 15:25, Byron Heads wrote: > I got burned by this yesterday, this code should not compile > void foo() {

Re: local import hijacking

2016-01-16 Thread Iain Buclaw via Digitalmars-d
On 15 January 2016 at 23:50, John Colvin via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > On Friday, 15 January 2016 at 08:15:50 UTC, Iain Buclaw wrote: > >> On 15 Jan 2016 9:12 am, "Russel Winder via Digitalmars-d" < >> digitalmars-d@puremagic.com> wrote: >> >>> >>> In this mindset D is

Re: local import hijacking

2016-01-15 Thread tsbockman via Digitalmars-d
On Friday, 15 January 2016 at 09:05:27 UTC, Johannes Pfau wrote: I'm not sure why you even think the OP is using GDC. His bug report says he's on windows 10. GDC is not supported on windows systems and won't work for anything but trivial programs. And stack traces is one thing GDC has had

Re: local import hijacking

2016-01-15 Thread tsbockman via Digitalmars-d
On Friday, 15 January 2016 at 08:12:03 UTC, Russel Winder wrote: "several versions behind" might be a better way if putting this. The release cycles of DMD (basically unconstrained), LDC (basically unconstrained), and GDC (heavily constrained), mean that "out of date" is a bad marketing phrase.

Re: local import hijacking

2016-01-15 Thread tsbockman via Digitalmars-d
On Saturday, 16 January 2016 at 00:03:31 UTC, Meta wrote: And the build is failing on DAutoTest with nasty assert errors. It built fine for me locally, anyone know what might be the problem? Error - file 'dimport.d' contains windows line endings at line 1 ... *** [checkwhitespace] Error 1

Re: local import hijacking

2016-01-15 Thread Meta via Digitalmars-d
On Friday, 15 January 2016 at 23:57:51 UTC, Meta wrote: On Thursday, 14 January 2016 at 20:37:54 UTC, Andrei Alexandrescu wrote: On 01/14/2016 02:10 PM, Joakim wrote: Wow, can't believe his PR has been sitting unreviewed for 5 months: https://github.com/D-Programming-Language/dmd/pull/4915

Re: local import hijacking

2016-01-15 Thread Andrei Alexandrescu via Digitalmars-d
On 01/15/2016 06:57 PM, Meta wrote: On Thursday, 14 January 2016 at 20:37:54 UTC, Andrei Alexandrescu wrote: On 01/14/2016 02:10 PM, Joakim wrote: Wow, can't believe his PR has been sitting unreviewed for 5 months: https://github.com/D-Programming-Language/dmd/pull/4915 I notice Kenji has

Re: local import hijacking

2016-01-15 Thread John Colvin via Digitalmars-d
On Friday, 15 January 2016 at 08:15:50 UTC, Iain Buclaw wrote: On 15 Jan 2016 9:12 am, "Russel Winder via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: In this mindset D is certainly stable enough for production, it is not beta software. DMD is the playground compiler, GDC the

Re: local import hijacking

2016-01-15 Thread Meta via Digitalmars-d
On Saturday, 16 January 2016 at 00:07:59 UTC, tsbockman wrote: On Saturday, 16 January 2016 at 00:03:31 UTC, Meta wrote: And the build is failing on DAutoTest with nasty assert errors. It built fine for me locally, anyone know what might be the problem? Error - file 'dimport.d' contains

Re: local import hijacking

2016-01-15 Thread Meta via Digitalmars-d
On Thursday, 14 January 2016 at 20:37:54 UTC, Andrei Alexandrescu wrote: On 01/14/2016 02:10 PM, Joakim wrote: Wow, can't believe his PR has been sitting unreviewed for 5 months: https://github.com/D-Programming-Language/dmd/pull/4915 I notice Kenji has been absent for a while, could anyone

Re: local import hijacking

2016-01-15 Thread Johannes Pfau via Digitalmars-d
Am Thu, 14 Jan 2016 21:36:01 + schrieb tsbockman : > On Thursday, 14 January 2016 at 14:56:39 UTC, Byron Heads wrote: > > std.net.curl.CurlException@std\net\curl.d(4033): Couldn't > > resolve host name on handle 2188398 > > > > 0x00405F65 > >

Re: local import hijacking

2016-01-15 Thread Iain Buclaw via Digitalmars-d
On 15 Jan 2016 9:12 am, "Russel Winder via Digitalmars-d" < digitalmars-d@puremagic.com> wrote: > > In this mindset D is certainly stable enough for production, it is not > beta software. DMD is the playground compiler, GDC the conservative but > solid one, and LDC the core production tool. > > --

Re: local import hijacking

2016-01-15 Thread Russel Winder via Digitalmars-d
On Thu, 2016-01-14 at 21:36 +, tsbockman via Digitalmars-d wrote: > […] > The useless stack traces got fixed in a fairly recent version of  > DMD - as have many, many other issues which are still present in  > GDC, whose front end is several versions out-of-date. "several versions behind"

Re: local import hijacking

2016-01-14 Thread anonymous via Digitalmars-d
On 14.01.2016 15:25, Byron Heads wrote: I got burned by this yesterday, this code should not compile import std.experimental.logger : trace; void foo() { import std.net.curl : trace; trace("hello"); } void main() { foo(); } I don't see a problem with that specific code.

Re: local import hijacking

2016-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 01/14/2016 10:17 AM, anonymous wrote: On 14.01.2016 15:25, Byron Heads wrote: I got burned by this yesterday, this code should not compile import std.experimental.logger : trace; void foo() { import std.net.curl : trace; trace("hello"); } void main() { foo(); } I don't

Re: local import hijacking

2016-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 01/14/2016 09:36 AM, Daniel Kozak via Digitalmars-d wrote: V Thu, 14 Jan 2016 14:25:43 + Byron Heads via Digitalmars-d napsáno: I got burned by this yesterday, this code should not compile import std.experimental.logger : trace; void foo() {

[Issue 15567] New: local import hijacking

2016-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15567 Issue ID: 15567 Summary: local import hijacking Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW Severity: major

local import hijacking

2016-01-14 Thread Byron Heads via Digitalmars-d
I got burned by this yesterday, this code should not compile import std.experimental.logger : trace; void foo() { import std.net.curl : trace; trace("hello"); } void main() { foo(); } Not sure if this is a duplicate https://issues.dlang.org/show_bug.cgi?id=15567

Re: local import hijacking

2016-01-14 Thread Daniel Kozak via Digitalmars-d
V Thu, 14 Jan 2016 14:25:43 + Byron Heads via Digitalmars-d napsáno: > I got burned by this yesterday, this code should not compile > > import std.experimental.logger : trace; > > > void foo() { > import std.net.curl : trace; > trace("hello"); > }

[Issue 15567] local import hijacking

2016-01-14 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15567 --- Comment #1 from Byron Heads --- The implicit locals should not hijack globals import std.experimental.logger; void foo() { import std.net.curl; trace("hello"); } void main() { foo(); } --

Re: local import hijacking

2016-01-14 Thread Daniel Kozak via Digitalmars-d
V Thu, 14 Jan 2016 16:17:41 +0100 anonymous via Digitalmars-d napsáno: > On 14.01.2016 15:25, Byron Heads wrote: > > I got burned by this yesterday, this code should not compile > > > > import std.experimental.logger : trace; > > > > > > void foo() { > > import

Re: local import hijacking

2016-01-14 Thread H. S. Teoh via Digitalmars-d
On Thu, Jan 14, 2016 at 03:37:54PM -0500, Andrei Alexandrescu via Digitalmars-d wrote: > On 01/14/2016 02:10 PM, Joakim wrote: > >Wow, can't believe his PR has been sitting unreviewed for 5 months: > > > >https://github.com/D-Programming-Language/dmd/pull/4915 > > I notice Kenji has been absent

Re: local import hijacking

2016-01-14 Thread tsbockman via Digitalmars-d
On Thursday, 14 January 2016 at 14:56:39 UTC, Byron Heads wrote: std.net.curl.CurlException@std\net\curl.d(4033): Couldn't resolve host name on handle 2188398 0x00405F65 0x00405F10 0x0040275B 0x0040259E 0x0040202B 0x00402035 0x004257A7 0x004256A8 0x0041B7FF 0x769F337A in

Re: local import hijacking

2016-01-14 Thread Andrei Alexandrescu via Digitalmars-d
On 01/14/2016 02:10 PM, Joakim wrote: Wow, can't believe his PR has been sitting unreviewed for 5 months: https://github.com/D-Programming-Language/dmd/pull/4915 I notice Kenji has been absent for a while, could anyone take over that PR? -- Andrei

Re: local import hijacking

2016-01-14 Thread Joakim via Digitalmars-d
On Thursday, 14 January 2016 at 16:32:38 UTC, H. S. Teoh wrote: On Thu, Jan 14, 2016 at 11:09:29AM -0500, Andrei Alexandrescu via Digitalmars-d wrote: [...] Yes, this needs to be fixed. -- Andrei This issue has been known for a long time:

Re: local import hijacking

2016-01-14 Thread Byron Heads via Digitalmars-d
On Thursday, 14 January 2016 at 14:36:23 UTC, Daniel Kozak wrote: V Thu, 14 Jan 2016 14:25:43 + Byron Heads via Digitalmars-d napsáno: I got burned by this yesterday, this code should not compile import std.experimental.logger : trace; void foo() {

Re: local import hijacking

2016-01-14 Thread Byron Heads via Digitalmars-d
On Thursday, 14 January 2016 at 14:56:39 UTC, Byron Heads wrote: On Thursday, 14 January 2016 at 14:36:23 UTC, Daniel Kozak wrote: [...] import std.experimental.logger; void foo() { import std.net.curl; lots of curl calls trace("hello"); .. more curl

Re: local import hijacking

2016-01-14 Thread H. S. Teoh via Digitalmars-d
On Thu, Jan 14, 2016 at 11:09:29AM -0500, Andrei Alexandrescu via Digitalmars-d wrote: [...] > Yes, this needs to be fixed. -- Andrei This issue has been known for a long time: https://issues.dlang.org/show_bug.cgi?id=10378 Kenji even has a PR for it. My favorite blatant demonstration

[Issue 12598] New: Poor diagnostic with local import hijacking

2014-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12598 Issue ID: 12598 Summary: Poor diagnostic with local import hijacking Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic

[Issue 12598] Poor diagnostic with local import hijacking

2014-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12598 Andrej Mitrovic andrej.mitrov...@gmail.com changed: What|Removed |Added URL|

[Issue 12598] Poor diagnostic with local import hijacking

2014-04-19 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12598 --- Comment #1 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/776cc73b4afc04e22bbc06f3e3b370cd5c90c5a5 Fix Issue 12598 - Emit