--- Log opened Sun Nov 29 00:00:29 2009
00:58 -!- ehird [n=ehird@91.104.237.227] has joined #go-run
02:59 < drhodes> > var a, b int; a = b = 4;
02:59 < rndbot> <Error: syntax error near b>
03:00 < drhodes> > a, b := 0, 0; a = b = 4;
03:00 < rndbot> <Error: syntax error near b>
03:03 < drhodes> > !0
03:03 < rndbot> <Error: invalid operation: ! ideal>
03:04 -!- MutantTurkey [n=calvin@pool-96-245-131-192.phlapa.fios.verizon.net] has
joined #go-run
03:04 -!- MutantTurkey [n=calvin@pool-96-245-131-192.phlapa.fios.verizon.net] has
left #go-run []
03:51 < Zeffrin> > type bla struct { var a, b, int; var s string; };
fmt.Printf("%v", bla);
03:51 < rndbot> <Error: syntax error near var, syntax error near fmt,
empty top-level declaration>
03:52 < Zeffrin> > type bla struct { a, b, int; s string; };
fmt.Printf("%v", bla);
03:52 < rndbot> <Error: syntax error near int, syntax error near fmt,
empty top-level declaration>
03:52 < Zeffrin> > type bla struct { a, b int; s string; };
fmt.Printf("%v", bla);
03:52 < rndbot> <Error: type bla is not an expression>
03:52 < Zeffrin> > type bla struct { a, b int; s string; };
fmt.Printf("%#v", bla);
03:52 < rndbot> <Error: type bla is not an expression>
03:52 < Zeffrin> > type bleh struct { a, b int; s string; }; var bla
bleh; fmt.Printf("%#v", bla);
03:52 < rndbot> main.bleh·1{a:0, b:0, s:""}
03:53 < Zeffrin> > type bleh struct { a, b int; s string; }; var bla
bleh; fmt.Printf("%v", bla);
03:53 < rndbot> {0 0 }
03:53 < Zeffrin> > type bleh struct { a, b int; s string; }; var bla
bleh; fmt.Printf("%+v", bla);
03:53 < rndbot> {a:0 b:0 s:}
12:03 -!- ehird [n=ehird@91.104.237.227] has quit []
15:09 < Zeffrin> > var bla string; bla = "ff"; fmt.Printf("%#v", bla);
15:10 < rndbot> "ff"
15:10 < Zeffrin> > var bla string; bla = "ff"; fmt.Printf("%d", bla);
15:10 < rndbot> %d(string=ff)
15:11 < Zeffrin> > var bla string; bla = "ff"; bla += "gg";
fmt.Printf("%d", bla);
15:11 < rndbot> %d(string=ffgg)
16:03 < Zeffrin> > func bla (n int, err os.Error) { err :=
os.NewError("test") return }; n, err := bla(); fmt.Printf("%d %#v", n, err);
16:03 < rndbot> <Error: syntax error near bla, empty top-level
declaration>
16:04 < Zeffrin> > n, err := func (n int, err os.Error) { err :=
os.NewError("test") return }(); fmt.Printf("%d %#v", n, err);
16:04 < rndbot> <Error: no new variables on left side of :=, syntax error
near return>
16:04 < Zeffrin> > n, err := func (n int, err os.Error) { err =
os.NewError("test") return }(); fmt.Printf("%d %#v", n, err);
16:04 < rndbot> <Error: syntax error near return>
16:04 < Zeffrin> > n, err := func (n int, err os.Error) { err =
os.NewError("test"); return }(); fmt.Printf("%d %#v", n, err);
16:04 < rndbot> <Error: not enough arguments to CALL, ((node CLOSURE))()
used as value>
16:04 < Zeffrin> > n, err := func () (n int, err os.Error) { err =
os.NewError("test"); return }(); fmt.Printf("%d %#v", n, err);
16:04 < rndbot> 0 "test"
16:41 < Zeffrin> var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 1)
16:41 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 1)
16:42 < rndbot> <Error: syntax error near 1>
16:42 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 2)
16:42 < rndbot> <Error: syntax error near 2>
16:42 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 2);
16:42 < rndbot> <Error: syntax error near 2>
16:42 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 2));
16:42 < rndbot> []string{"test", "test.com"}
16:42 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 1));
16:42 < rndbot> []string{"test@test.com"}
16:42 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.Split(bla, "@", 2));
16:42 < rndbot> []string{"test", "test.com"}
16:42 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%#v",
strings.SplitAfter(bla, "@", 2));
16:42 < rndbot> []string{"test@", "test.com"}
16:44 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%s",
strings.SplitAfter(bla, "@", 2)[1]);
16:44 < rndbot> test.com
16:44 < Zeffrin> > var bla string = "test@test.com"; fmt.Printf("%s",
strings.Split(bla, "@", 2)[1]);
16:44 < rndbot> test.com
16:47 < Zeffrin> > var bla string = "test@test.com@invalid";
fmt.Printf("%d", len(strings.SplitAfter(bla, "@", 0)));
16:47 < rndbot> 3
16:48 < Zeffrin> > var bla string = "test"; fmt.Printf("%d",
len(strings.SplitAfter(bla, "@", 0)));
16:48 < rndbot> 1
20:50 -!- ehird [n=ehird@91.104.237.227] has joined #go-run
--- Log closed Mon Nov 30 00:00:29 2009