I am sorry, ignore it, please. I can have both variable and function at the same time, as it seems... Ruda
On 20 March 2011 16:13, Rudolf Sykora <[email protected]> wrote: > Hello, > > trying to use acmeedit I got from sb here I encountered this in > $PLAN9/lib/acme.rc file: > fn newwindow { > winctl=`{9p read acme/new/ctl} > winid=$winctl(1) > winctl noscroll > } > > fn winctl { > echo $* | 9p write acme/$winid/ctl > } > ... many more lines > > I believe the newwindow funcion is wrong. After its 1st line winctl is > a *variable* with many fields. And I try to call it on the 3rd line. > I'd expect sth. like > fn newwindow { > winc=`{9p read acme/new/ctl} > winid=$winc(1) > winctl noscroll > } > was meant. Is it so? > > Thank you! > Ruda >
