[Issue 657] version(): ignored

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Dec 7 06:50:49 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=657





------- Comment #2 from csantander619 at gmail.com  2006-12-07 08:50 -------
(In reply to comment #1)
> There is an error with that extra colon, after the version:
> 
> version(none)
> void foo () {}
> 
> none.d:3: undefined identifier foo
> none.d:3: function expected before (), not foo of type int
> 
> version(none)
> {
> void foo () {}
> }
> 
> none.d:3: undefined identifier foo
> none.d:3: function expected before (), not foo of type int
> 
> However, maybe having the colon should be made an error ?
> 

I know. This bug is actually very old, but has been ignored:

2004-10-06:
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2039
2004-12-31:
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2631
2006-06-20:
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=7625


-- 




More information about the D.gnu mailing list