Hi,

On Fri, Nov 19, 2010 at 11:58 PM, Arnaud Lacombe <lacom...@gmail.com> wrote:
> sysinfo.go:2874:13: error: use of undefined type 'func___sighandler_t'
>
gen-sysinfo.go has :

// type ___sighandler_t func*(int32)

It may not like the * as the following:

package main
import "fmt"
type ___sighandler_t func(int32)
func test(fn ___sighandler_t, val int32) {
    fn(val);
}
func handler(sig int32) {
    fmt.Println(sig)
}
func main() {
        test(handler, 42)
}

seems to work fine with the online Go compiler. But still, I should be
as Go-fluent than Klingon-fluent. I have not been able to find much
info on function pointer in the specs, but I certainly did not look at
the right place.

Anyway, it start to be late here, I'll continue tomorrow. I have some
of the Makefile.am bits, but FreeBSD 8.1 is lacking recent autotools,
so I'll have to make round trip tomorrow with a Linux box to regen
everything.

 - Arnaud

Reply via email to