[erlang-questions] How to share record definitions between modules

Tino Breddin tino.breddin@REDACTED
Tue Apr 19 13:40:58 CEST 2011


You can define records in header files '.hrl' just like macros and thus
include these in multiple files.

See http://www.erlang.org/doc/reference_manual/macros.html

Cheers,
Tino

On Tue, Apr 19, 2011 at 1:34 PM, Richard Evans <
richardprideauxevans@REDACTED> wrote:

> I have a record defined in one erlang file, and I want it to be available
> in another module.
>
> Is there a way to share the record between the two files without
> copying/pasting the record definition?
>
> Is there a similar way to share -type info between files?
>
> thanks in advance,
>
> Richard
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110419/86f4fafa/attachment.htm>


More information about the erlang-questions mailing list