Re: [9fans] naive acid debugging

2009-07-15 Thread gdiaz
Hello Thanks Russ, seems that even though i tried to use your iwp9 2007 talk as a reference, i missed the point, i should read more carefully. gabi >>>               print("f->mb=", f->mb\X,"       =?      mb=",mb\X,"\n"); >>>               f=f->next; > > Always use . (never ->) in acid. > >

Re: [9fans] naive acid debugging

2009-07-15 Thread gdiaz
hello thank you very much Erik, I'll look at that code today night, i hope to see the light soon ☺ gabi > While understanding how refs work inside nupas, i decided to try to implement > the same function nupas has to find mailbox references in acid langauge, so i > did: > > defn findmboxref

Re: [9fans] naive acid debugging

2009-07-15 Thread Russ Cox
>>               print("f->mb=", f->mb\X,"       =?      mb=",mb\X,"\n"); >>               f=f->next; Always use . (never ->) in acid. If f is a pointer, then the acid expression f.mb is like the C expression (*f).mb aka f->mb. The acid expression f->mb is like the C expression (**f).mb. By using

Re: [9fans] naive acid debugging

2009-07-15 Thread erik quanstrom
> While understanding how refs work inside nupas, i decided to try to implement > the same function nupas has to find mailbox references in acid langauge, so i > did: > > defn findmboxrefs(mb,fids) { > local f, refs; > f=fids; > while f!=0 do { > print("f=", f\X,"