digitalmars.D.bugs - Block Statement scope
- Marcio Faustino (6/6) Jan 27 2006 Hi all,
- Roberto Mariottini (6/10) Jan 27 2006 IIRC, from a long discussion in the D newsgroup, it was later decided th...
- Marcio Faustino (4/16) Jan 27 2006 Sorry I didn't know that, but still func2() should cause a compile error...
- =?ISO-8859-1?Q?Jari-Matti_M=E4kel=E4?= (7/24) Feb 16 2006 Confirmed with dmd 0.147 on linux. func2() should produce an error, but
Hi all, The examples func2() and func3() from http://www.digitalmars.com/d/statement.html compile without any warning, where it should be an error. -- Marcio Faustino
Jan 27 2006
In article <drcmmp$kuh$1 digitaldaemon.com>, Marcio Faustino says...Hi all, The examples func2() and func3() from http://www.digitalmars.com/d/statement.html compile without any warning, where it should be an error.IIRC, from a long discussion in the D newsgroup, it was later decided that func3 should be legal code, while func2 and func4 should issue an error. Ciao --- http://www.mariottini.net/roberto/
Jan 27 2006
In article <drcpts$o9s$1 digitaldaemon.com>, Roberto Mariottini says...In article <drcmmp$kuh$1 digitaldaemon.com>, Marcio Faustino says...Sorry I didn't know that, but still func2() should cause a compile error. -- Marcio FaustinoHi all, The examples func2() and func3() from http://www.digitalmars.com/d/statement.html compile without any warning, where it should be an error.IIRC, from a long discussion in the D newsgroup, it was later decided that func3 should be legal code, while func2 and func4 should issue an error. Ciao --- http://www.mariottini.net/roberto/
Jan 27 2006
Marcio Faustino wrote:In article <drcpts$o9s$1 digitaldaemon.com>, Roberto Mariottini says...Confirmed with dmd 0.147 on linux. func2() should produce an error, but it doesn't. There's also an error in the docs - func3() should be legal, because previous x is introduced in it's own scope inside the first block. -- Jari-MattiIn article <drcmmp$kuh$1 digitaldaemon.com>, Marcio Faustino says...Sorry I didn't know that, but still func2() should cause a compile error.Hi all, The examples func2() and func3() from http://www.digitalmars.com/d/statement.html compile without any warning, where it should be an error.IIRC, from a long discussion in the D newsgroup, it was later decided that func3 should be legal code, while func2 and func4 should issue an error. Ciao --- http://www.mariottini.net/roberto/
Feb 16 2006