From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <0de965508a7a944ef6bf0c0af1082091@brasstown.quanstro.net> References: <0de965508a7a944ef6bf0c0af1082091@brasstown.quanstro.net> Date: Sun, 24 May 2015 09:19:45 -0700 Message-ID: From: "Devon H. O'Dell" To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] ot: pascal rides again? Topicbox-Message-UUID: 54ffdfda-ead9-11e9-9d60-3106f5b1d025 http://blog.golang.org/go-slices-usage-and-internals 2015-05-24 8:55 GMT-07:00 erik quanstrom : >> Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte are >> slices - therefore they are different types. >> > > yes, exactly. i suppose this implies that different size arrays are not type compatable > (yea pascal). also the fu := bar[:] looks a lot like the tedious casting from c, and implies > dynamic allocation of the slice, i'm guessing. > > - erik >