[erlang-questions] Simple question about Erlang macro

Kirill Ratkin kvratkin@REDACTED
Fri Aug 21 14:13:14 CEST 2015


Hi,

Does Erlang have some symbols to say preprocessor 'stop' to parse macro
name and make substitution?

I explain on example.

In bash I can do:


*A = a*


*echo $A # -> a*

*B = $A_b #*

*echo $B # -> nothing good*
But if :

*B = ${A}_b*
*echo $B # -> it works. Result is a_b*

May I do same in Erlang preprocessor? Are there some symbols like bash's
'{' and '}' in macro preprocessor?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150821/f496baa3/attachment.htm>


More information about the erlang-questions mailing list