Age | Commit message (Collapse) | Author | Files | Lines |
|
next cl will update names and add to build
R=rsc
DELTA=1876 (938 added, 938 deleted, 0 changed)
OCL=17149
CL=17166
|
|
R=ken
OCL=17164
CL=17164
|
|
R=ken
OCL=17141
CL=17143
|
|
R=rsc
DELTA=21 (0 added, 21 deleted, 0 changed)
OCL=17123
CL=17136
|
|
R=r
OCL=17134
CL=17134
|
|
R=r
OCL=17116
CL=17118
|
|
R=r
OCL=17096
CL=17096
|
|
R=r
OCL=17063
CL=17063
|
|
R=r
OCL=16938
CL=16938
|
|
R=ken
OCL=16935
CL=16935
|
|
R=r
OCL=16929
CL=16929
|
|
R=rsc
APPROVED=rsc
DELTA=21 (21 added, 0 deleted, 0 changed)
OCL=16794
CL=16803
|
|
suggested by rob (could make programs generating
go easier to write).
R=ken
DELTA=13 (13 added, 0 deleted, 0 changed)
OCL=16766
CL=16766
|
|
R=r
OCL=16720
CL=16728
|
|
R=r
OCL=16721
CL=16727
|
|
R=r
DELTA=6 (6 added, 0 deleted, 0 changed)
OCL=16726
CL=16726
|
|
R=rsc
APPROVED=rsc
DELTA=50 (4 added, 0 deleted, 46 changed)
OCL=16707
CL=16725
|
|
- pointer to interface cannot have methods
- record type names for better runtime error
R=r,ken
DELTA=85 (80 added, 0 deleted, 5 changed)
OCL=16658
CL=16722
|
|
R=rsc
APPROVED=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=16688
CL=16690
|
|
R=ken
OCL=16651
CL=16653
|
|
R=gri,r
OCL=16648
CL=16652
|
|
type T struct
export type T struct { a int }
was not exporting T
R=ken
OCL=16650
CL=16650
|
|
* 1. all statements and declarations are terminated by semicolons
* 2. semicolons can be omitted at top level.
* 3. semicolons can be omitted before and after the closing ) or }
* on a list of statements or declarations.
now that semicolons are in, uncomment forward declaration
of interfaces
R=ken
DELTA=285 (124 added, 114 deleted, 47 changed)
OCL=16638
CL=16646
|
|
* 1. all statements and declarations are terminated by semicolons
* 2. semicolons can be omitted at top level.
* 3. semicolons can be omitted before and after the closing ) or }
* on a list of statements or declarations.
/home/rsc/bin/addsemi and then diff+tweak.
R=r,gri
OCL=16620
CL=16643
|
|
R=rsc
DELTA=7 (0 added, 0 deleted, 7 changed)
OCL=16600
CL=16630
|
|
type T struct {
next *T
}
and
type T *struct {
next T
}
are valid without needing forward declarations.
add "type T struct" syntax for forward struct declarations.
add "type T interface" syntax, but commented out
(need to fix semicolons first)
R=ken
DELTA=452 (259 added, 115 deleted, 78 changed)
OCL=16580
CL=16584
|
|
R=ken
OCL=16550
CL=16550
|
|
R=r
OCL=16497
CL=16497
|
|
R=r
OCL=16494
CL=16494
|
|
R=ken
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=16489
CL=16489
|
|
R=ken,r
DELTA=86 (72 added, 9 deleted, 5 changed)
OCL=16488
CL=16488
|
|
R=ken
OCL=16449
CL=16466
|
|
package flag
export type flag.Flag struct { name flag.string; usage flag.string; \
value flag.Value; next *flag.Flag }
type flag.string string
type flag.Value interface { AsBool () (? *flag.BoolValue); \
AsInt () (? *flag.IntValue); AsString () (? *flag.StringValue); \
IsBool () (? flag.bool); IsInt () (? flag.bool); IsString () (? flag.bool); \
Str () (? flag.string); ValidValue (str flag.string) (? flag.bool) }
type flag.BoolValue struct { val flag.bool; p *flag.bool }
type flag.IntValue struct { val flag.int64; p *flag.int64 }
type flag.StringValue struct { val flag.string; p *flag.string }
type flag.bool bool
func (e *flag.StringValue) AsBool () (? *flag.BoolValue)
func (e *flag.StringValue) AsInt () (? *flag.IntValue)
...
the \ continuations are for this message, not real.
changed delimiter for import from (( )) to $$ $$.
replaced mksys.bash with mksys.c
changed sys.go to use leading export,
fake package name is now SYS not foop
don't always require ; on forward func decls
R=ken,r
DELTA=1827 (446 added, 1083 deleted, 298 changed)
OCL=16433
CL=16463
|
|
R=r
OCL=16462
CL=16462
|
|
R=rsc
DELTA=32 (30 added, 0 deleted, 2 changed)
OCL=16440
CL=16445
|
|
this CL passes the tests, but should
be considered unstable
R=r
OCL=16390
CL=16390
|
|
bug fix in named-return
R=r
OCL=16377
CL=16377
|
|
prints that insert spaces and new line
R=r
OCL=16370
CL=16370
|
|
delete unused variables
R=ken
OCL=16360
CL=16360
|
|
R=r
OCL=16345
CL=16345
|
|
var a,b int;
R=r
OCL=16318
CL=16318
|
|
R=r
DELTA=41 (41 added, 0 deleted, 0 changed)
OCL=16290
CL=16293
|
|
so that they don't look like functions.
R=ken
OCL=16244
CL=16244
|
|
R=ken
OCL=16240
CL=16242
|
|
and still have a variable named "net"
R=r
DELTA=18 (0 added, 0 deleted, 18 changed)
OCL=16220
CL=16222
|
|
a few missing FLUSH.
R=ken
OCL=16221
CL=16221
|
|
R=ken
OCL=16219
CL=16219
|
|
R=ken
OCL=16218
CL=16218
|
|
type t1 int;
type t2 int;
type t3 int;
func f1(t1, t2, t3);
func f2(t1, t2, t3 bool);
func f3(t1, t2, x t3);
func f4(*t2, x t3); // error: cannot mix
func f5(t1, *t3);
func (x *t1) f6(y *[]t2) (t1, *t3);
func f7() (int, *string);
func f8(t1, *t2, x t3); // error: cannot mix
func f9() (x int, *string);
func f10(*t2, t3);
R=ken
OCL=16202
CL=16210
|
|
R=r
OCL=16163
CL=16163
|