[erlang-questions] Attribute named type

mats cronqvist masse@REDACTED
Tue Feb 17 21:18:30 CET 2009


David Sveningsson <ext@REDACTED> 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



More information about the erlang-questions mailing list