[erlang-questions] Attribute named type
Wed Feb 18 12:33:55 CET 2009
-----BEGIN PGP SIGNED MESSAGE-----
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
>> 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.
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
-----END PGP SIGNATURE-----
More information about the erlang-questions