Hi,

 

I encountered a little but nasty to find hick-up in the typeswitch command.

One would expect the code below to return: “map”.

It returns: “function”.

Looks like a bug to me.

 

typeswitch( map { 'p' : 'test'})

case function(*) return 'function'

case map(*)      return 'map'

default          return 'other'

 

Rob Stapper




Avast logo

Dit e-mailbericht is gecontroleerd op virussen met Avast antivirussoftware.
www.avast.com