I was reading the source code of makechan(), and these questions confused me. I would appreciate it if someone could help me.
Q1. What does Elements do not contain pointers. mean? Does that means that the type of channel is not a pointer type (like chan int and chan *int)? Q2. Why does the allocation strategy of memory allocation differ? It seems like the buf and the hchan should be allocated into one piece of continuous memory, if the "elements contains pointers", so what's the point? The logically continuous memory might not physically continuous. -- 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/8d01bae6-9cb3-47aa-9b17-631bba1a975fn%40googlegroups.com.