Perhaps worth mentioning that in order for it to work today it needs to be 
written as:

<<5::size(@some_attrib)-unit(2)>>


> On 2 Nov 2018, at 14:33, Jakub G <jump3...@gmail.com> wrote:
> 
> We can use <<5 :: 4>> or <<10 :: 4*3>> to control our binaries' size. 
> Why can't we use modules attrib (which are const) to do it? I was kinda 
> suprised this didn't work: <<5 :: @some_attrib * 2>>
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to elixir-lang-core+unsubscr...@googlegroups.com 
> <mailto:elixir-lang-core+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elixir-lang-core/683a6227-525c-4693-a56a-4d6ea64f48df%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elixir-lang-core/683a6227-525c-4693-a56a-4d6ea64f48df%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/DF739CBE-48B5-4BED-AC10-24BDFD4A9138%40wojtekmach.pl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to