[go-nuts] Re: Question regarding compiler internals

2017-09-22 Thread Jacob McCollum
Keith, The genreal idea is that type parameters can only be specified in 2 places right now: on package-level type definitions and on package-level function definitions. I am waffling on the viability of allowing methods on already-parameterized types to specify type parameters as well, but

[go-nuts] Re: Question regarding compiler internals

2017-09-21 Thread anlhord
hello i've been adding single parametric functions to go to the gccgo compiler in c++. It works on linux http://tinyurl.com/ycyr3jyw to compile programs run /home/foo/Downloads/gccgo/bin/gccgo program.go -static-libgo a.out file shoud appear to run the proram: ./a.out here are some demo

[go-nuts] Re: Question regarding compiler internals

2017-09-20 Thread 'Keith Randall' via golang-nuts
On Wednesday, September 20, 2017 at 7:51:28 AM UTC-7, Jacob McCollum wrote: > > All, > > This is my first time posting to the golang-nuts mailing list, but I've > hit a wall and I'm not sure where else to reach out for some assistance. > > I'm knee-deep in a research implementation of