On Sun, May 26, 2019 at 5:30 PM Sergey Kamardin <gob...@gmail.com> wrote:

I'm not sure what the goal is, but the code looks like doing the same
as just `bts := b[:]`. But then it's equal to just `bts :=
make([]byte, 16)`. Remember, there si no stack nor heap wrt the
language specification, so there is no guaranteed way to have
something allocated in the stack. If the compiler decides to put it
(in reality) in the heap, you cannot change that decision.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAA40n-WPbaVPA5%3DNfMDBO-6J0AJS1fNXmEuVZYxx8Q70Hofz%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to