[erlang-questions] Why are records not 'export'-able?
Fri Jun 29 16:27:56 CEST 2012
You can create a library application with your include file (and perhaps other
common modules) and then use -include_lib(...) from all other applications.
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,
> 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".
> */Mahesh Paolini-Subramanya/*
> That Tall Bald Indian Guy...
> Blog <http://dieswaytoofast.blogspot.com/> | Twitter
> <https://twitter.com/dieswaytoofast> | Google+
> erlang-questions mailing list
More information about the erlang-questions