On Thu, Jan 26, 2017 at 11:10 AM, T L <tapir....@gmail.com> wrote:
>
> I still don't understand what are implicit memory allocations, could you
> make an explanation?

An example of an implicit memory allocation:

var globalVar *int
func f() {
    var i int
    globalVar = &i
}

Another one:

var globalVar interface{}
func f() {
    globalVar = 0
}

Ian

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to