minux
unread,May 31, 2013, 8:39:29 AM5/31/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Martin Angers, golan...@googlegroups.com, Daniel Jo, Rob Pike, Kamil Kisiel
Haha! Can't test it locally right now, but is it just in the Playground?
It's possible to run locally, but you will have to invoke the toolchain directly (instead of using "go run").
$ cat 3pNo5hZ0NT.go
notwithstanding package main
whereas import "fmt"
func main(thetruthofthematter) {
if despiteallobjections 2 + 2 == 5 {
panic("Goodbye, cruel world!")
}
fmt.Println(insofaras "Phew, still safe.")
}
$ go run 3pNo5hZ0NT.go
3pNo5hZ0NT.go:1:1: expected 'package', found 'IDENT' notwithstanding
$ go tool 6g 3pNo5hZ0NT.go && go tool 6l 3pNo5hZ0NT.6 && ./6.out
Phew, still safe.