
4 Aug
2004
4 Aug
'04
10:25 a.m.
Ketil Malde
Hmm...if I run it through CPP and #define HEAD (\x -> if null x then error ("__FILE__:__LINE__") else head x) is the __LINE__ resolved at the place of declaration or at the place of usage?
According to the C standard, at the position of /usage/ of the macro `HEAD'. Incidentally, cpphs does not yet implement __FILE__ or __LINE__ replacements. Is their usage widespread amongst Haskell users? Regards, Malcolm