DCD 0.7.0-alpha1

anonymous via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Mon Aug 10 00:24:18 PDT 2015


On Saturday, 8 August 2015 at 00:19:38 UTC, Brian Schott wrote:
> https://github.com/Hackerpilot/DCD/releases/tag/v0.7.0-alpha1
>
> DCD is an IDE and editor-independent autocompletion system for 
> the D programming language.
>
> Release notes are available at the above link.
>
> 0.7.0 has some major changes to its internal structure, so 
> please help me to test it.

So far, so good. However i've found a way to crash the server 
even if it's a very laughable and unrealistic case; it crashes 
dmd too BTW.

---
struct Foo {
	int a;
	this(int a) { this.a = a; }
	static immutable Foo bar = Foo(1);
}

void main() {
     auto a = Foo.bar;
     import std.stdio;
         
writeln(a.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar
     .bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar
     .bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar
     ...
     .bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar.bar
}
---
if you repeat the access chain .bar.bar etc, let's say 16X per 
line, for 4000X lines and try a dot completion then the server 
crashes.





More information about the Digitalmars-d-announce mailing list