[erlang-questions] Why are records not 'export'-able?

Ladislav Lenart lenartlad@REDACTED
Fri Jun 29 16:27:56 CEST 2012


Hello.

You can create a library application with your include file (and perhaps other
common modules) and then use -include_lib(...) from all other applications.


HTH,

Ladislav Lenart


On 29.6.2012 16:06, Mahesh Paolini-Subramanya wrote:
> If I have a record I use in just one module, I declare it in that module.
> If I have a record I use across a number of modules, I declare it in an
> included file.
> If I have a record that I use across a number of applications, I end up
> declaring it once in each application.
> 
> The simple-minded me says "Hmf. If I could just have a '-export_record'
> declaration, then I could do some fun things like '-record(Name,
> Application:Record)'
> 
> The more realistic me says "There is probably some reason why you can't do this.
> Probably has to do with compilers. It usually does".
> 
> Anyone?
> 
> */
> */Mahesh Paolini-Subramanya/*
> <http://www.gravatar.com/avatar/204a87f81a0d9764c1f3364f53e8facf.png>
> That Tall Bald Indian Guy...
> Blog <http://dieswaytoofast.blogspot.com/>   |   Twitter
> <https://twitter.com/dieswaytoofast>   |   Google+
> <https://plus.google.com/u/0/108074935470209044442/posts>
> /*
> __
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions





More information about the erlang-questions mailing list