Re: Notepad++

2009-08-13 Thread Kagamin
Stewart Gordon Wrote: > Anyway, attached is the result. Can anybody do better (other than by > telling it to treat D as C or some other language instead)? I don't see how the lexer is being chosen. Programmer's Notepad does it correctly.

Re: Explicitly saying ref or out when invoking a function

2009-08-13 Thread Lionello Lunesu
"Andrei Alexandrescu" wrote in message news:h5vtj8$1l7...@digitalmars.com... Lionello Lunesu wrote: "Andrei Alexandrescu" wrote in message news:h5ttfi$cf...@digitalmars.com... Lionello Lunesu wrote: "Jeremie Pelletier" wrote in message news:h5sl4c$173...@digitalmars.com... It's especi

Re: Notepad++

2009-08-13 Thread Kagamin
Stewart Gordon Wrote: > For the record, there's a SciLexer.dll in my Notepad++ dir, but no > d.properties to be found. The SciLexer.dll reports itself as file > version 1.7.8.0, product version 1.78. So maybe the question is of what > effect replacing it with a fork of version 1.76 would have

Re: Notepad++

2009-08-13 Thread Kagamin
Sergey Gromov Wrote: > Or, even better, to ask Scintilla developers to include my lexer into > the official bundle. May be worth a try. Uh... that's not an option.

Re: auto

2009-08-13 Thread Jason House
Ary Borenszweig Wrote: > Jarrett Billingsley wrote: > > On Wed, Aug 12, 2009 at 9:18 AM, Ary Borenszweig > > wrote: > >> This compiles and runs in D2: > >> > >> -- > >> import std.stdio; > >> > >> auto foo() { > >>return 1; > >> } > >> > >> void main() { > >>writefln("%s", foo()); > >> }

shared class constructor

2009-08-13 Thread Jeremie Pelletier
Just came across this while porting my code to enforce the use of shared. --- module test; shared class Foo { this() {} } --- Error: cannot implicitly convert expression (this) of type shared(Foo) to test.Foo Of course I could just use new shared(Foo) but that would allow non-shared instance

Re: shared class constructor

2009-08-13 Thread Robert Jacques
On Thu, 13 Aug 2009 09:34:50 -0700, Jeremie Pelletier wrote: Just came across this while porting my code to enforce the use of shared. --- module test; shared class Foo { this() {} } --- Error: cannot implicitly convert expression (this) of type shared(Foo) to test.Foo Of course I cou

Re: OS X Installer

2009-08-13 Thread Anders F Björklund
Michel Fortin wrote: Guess one could use the same workaround for moving dmd over to "dmd1", and make dmd into a symlink ? dmd -> dmd1 # depending on dmd -> dmd2 # your preference That's something I'd really like to see. It's done the same with GCC, too: /usr/bin/gcc -> gcc-4.0 /usr/bin/gcc

Re: Notepad++

2009-08-13 Thread Stewart Gordon
Sergey Gromov wrote: Thu, 13 Aug 2009 01:40:47 +0100, Stewart Gordon wrote: It puzzles me that they didn't make this plugin powerful enough to highlight the language it (and indeed the whole of Notepad++) is written in. Even more so considering the sheer number of C-like languages out there

Re: Notepad++

2009-08-13 Thread Nick Sabalausky
"Kagamin" wrote in message news:h60euh$2sg...@digitalmars.com... > Stewart Gordon Wrote: > >> Anyway, attached is the result. Can anybody do better (other than by >> telling it to treat D as C or some other language instead)? > > I don't see how the lexer is being chosen. > Programmer's Notepad

Re: auto

2009-08-13 Thread Ary Borenszweig
Jason House escribió: Ary Borenszweig Wrote: Jarrett Billingsley wrote: On Wed, Aug 12, 2009 at 9:18 AM, Ary Borenszweig wrote: This compiles and runs in D2: -- import std.stdio; auto foo() { return 1; } void main() { writefln("%s", foo()); } -- Since when a non-templated function c

Re: auto

2009-08-13 Thread Walter Bright
Ary Borenszweig wrote: Since when a non-templated function can have its return type deduced? :) The support for it is limited, basically the function body cannot have any forward references to other auto functions.