SPUG: Interesting bug using 'map'

Ronald J Kimball rjk-spug at tamias.net
Fri Apr 10 11:56:47 PDT 2009


On Fri, Apr 10, 2009 at 11:44:26AM -0700, Michael R. Wolf wrote:
> 
> On Apr 9, 2009, at 8:52 PM, seasprocket at gmail.com wrote:
> 
> >The bug arises bc fropper and glopper are not guaranteed to have  
> >return values for fee/fi/fo, and bc map evaluates BLOCK in LIST  
> >context. So if fee or fi is undefined, you get an empty list which  
> >collapses in the final result. Then fi or fo can get assigned to the  
> >wrong variable.
> 
> You are describing the documented behavior, not a bug.

It's a bug using map, not a bug in map.

Ronald


More information about the spug-list mailing list