[erlang-questions] Attribute named type

David Sveningsson <>
Wed Feb 18 12:33:55 CET 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

mats cronqvist wrote:
> David Sveningsson <> writes:
> 
>> Hi, I'm using some user-defined attributes in my modules. I want to use
>> one named type but I doesn't show up with module_info/1 or even
>> module_info/0.
>>
>> Is it reserved by something or am I doing something else wrong? I tried
>> to lookup the predefined attributes but I couldn't find anything about
>> 'type'. I can read the other attributes fine.
> 
>   -type and -spec are reserved. for type declarations and contract
>    specifications, respectively. AFAIK, they're only used by dialyzer.
> 
>   mats
> 

Of course, why didn't I think of that? I am even using -spec in my code.
Maybe the documentation should be updated. Anyway, thanks for your answer!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmb8iMACgkQ6pa1H/H5pqVUeACdGbr3jBvuveAAceG0fj3gHwQ0
S7AAoJUGr1YTptU/E20xdmN3b8ly1Xv1
=kybN
-----END PGP SIGNATURE-----



More information about the erlang-questions mailing list