Re: [9fans] Porting GO LANG

2009-11-21 Thread erik quanstrom
it really isn't worth fighting. /n/dump/2009/1120/sys/src/cmd/yacc.c:1918,1933 - yacc.c:1918,1940 /* i is the number of lines skipped */ i = 0; - if(Bgetrune(finput) != '*') - error("illegal comment"); c = Bgetrune(finput); - while(c != Beof) {

Re: [9fans] Porting GO LANG

2009-11-20 Thread lucio
> It's just a bug left over from when convlit and convlit1 > did return things. Gcc apparently lets you do this. Worked a treat. Thank you. ++L

Re: [9fans] Porting GO LANG

2009-11-20 Thread Russ Cox
On Fri, Nov 20, 2009 at 10:07 AM, wrote: > From the Go compiler sources (cmd/gc/const.c:51...): > >        /* >         * convert n, if literal, to type t. >         * implicit conversion. >         */ >        void >        convlit(Node **np, Type *t) >        { >                return convlit1(