Closed oubiwann closed 10 years ago
I believe this is indeed a bug. is_record/2 is in most cases (when the record is known) compiled to checks of a) tuplity, b) tuple_size and c) the first element of the tuple. But there are is_record/{2,3} BIFs to handle the fallback case, and apparently these are not presently implemented.
Fixed in 6e8527bfa12448303c2eb48640acdeec5dadd774; @oubiwann please verify.
Wow! That was fast :-)
Nice...
Just confirmed -- works like a charm. Thanks!
When trying to use the LFE library Exemplar (S-expressions for rendering HTML), an error is thrown (pasted below). When I remove the call to
is_record/2
in a supporting library, the error goes away and the expected content is rendered (<p>here is my content</p>
).Are there plans to add
is_record/2
? I did notice in the docs thatis_record/2
gets special treatment from the compiler ...Here's most of the error I got (some bits elided):
After a pause of about 5 seconds, a much longer error message is printed out, of which I will only paste part: