]> Cypherpunks repositories - gostls13.git/log
gostls13.git
16 years agoexport prereq for interface types
Russ Cox [Fri, 17 Oct 2008 23:13:17 +0000 (16:13 -0700)]
export prereq for interface types

R=ken
OCL=17377
CL=17377

16 years agoLink against -lm so that we can find the function "floor".
Ian Lance Taylor [Fri, 17 Oct 2008 22:52:49 +0000 (15:52 -0700)]
Link against -lm so that we can find the function "floor".

R=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=17375
CL=17375

16 years agoupdate fixed bugs (and delete an irrelevant one)
Rob Pike [Fri, 17 Oct 2008 18:48:51 +0000 (11:48 -0700)]
update fixed bugs (and delete an irrelevant one)

R=rsc
DELTA=328  (158 added, 170 deleted, 0 changed)
OCL=17353
CL=17359

16 years agoadd simple synchronization mechanism.
Rob Pike [Fri, 17 Oct 2008 17:58:34 +0000 (10:58 -0700)]
add simple synchronization mechanism.

R=rsc
DELTA=25  (19 added, 1 deleted, 5 changed)
OCL=17346
CL=17346

16 years agomake sure errchk only says BUG once,
Russ Cox [Fri, 17 Oct 2008 14:41:18 +0000 (07:41 -0700)]
make sure errchk only says BUG once,
so that run's count is correct

R=iant,r
DELTA=20  (12 added, 0 deleted, 8 changed)
OCL=17329
CL=17342

16 years ago- stronger syntax checks
Robert Griesemer [Fri, 17 Oct 2008 06:30:42 +0000 (23:30 -0700)]
- stronger syntax checks
- fixed a bug with non-eof terminated //-style comments
- collecting comments
- first experiments with reproducing comments
  (works but not very pretty, disabled for now)
- idempotent for all correct .go files we have checked in

R=r
OCL=17333
CL=17333

16 years ago- added test script
Robert Griesemer [Fri, 17 Oct 2008 02:24:33 +0000 (19:24 -0700)]
- added test script
- fixed a couple of printing bugs
status: parses, reproduces, and idempotently reproduces all correct .go files

R=r
OCL=17332
CL=17332

16 years agotype string parser; now handles all types
Rob Pike [Fri, 17 Oct 2008 01:09:38 +0000 (18:09 -0700)]
type string parser; now handles all types

R=rsc
DELTA=253  (153 added, 81 deleted, 19 changed)
OCL=17331
CL=17331

16 years agonew convert code found error
Russ Cox [Thu, 16 Oct 2008 23:51:12 +0000 (16:51 -0700)]
new convert code found error

R=r
OCL=17327
CL=17327

16 years agoparsing of type strings. still missing: func, struct, interface, chan
Rob Pike [Thu, 16 Oct 2008 23:38:33 +0000 (16:38 -0700)]
parsing of type strings.  still missing: func, struct, interface, chan

R=rsc
DELTA=366  (337 added, 7 deleted, 22 changed)
OCL=17321
CL=17324

16 years agodiagnose various conversion problems
Russ Cox [Thu, 16 Oct 2008 22:59:31 +0000 (15:59 -0700)]
diagnose various conversion problems

R=ken
OCL=17320
CL=17320

16 years ago- more robust TokenString implementation
Robert Griesemer [Thu, 16 Oct 2008 22:28:36 +0000 (15:28 -0700)]
- more robust TokenString implementation

R=r
OCL=17319
CL=17319

16 years agoclarification of conversion rules for ideal numbers
Robert Griesemer [Thu, 16 Oct 2008 22:03:22 +0000 (15:03 -0700)]
clarification of conversion rules for ideal numbers

R=r
DELTA=21  (11 added, 1 deleted, 9 changed)
OCL=17316
CL=17316

16 years agosnapshot:
Robert Griesemer [Thu, 16 Oct 2008 21:25:23 +0000 (14:25 -0700)]
snapshot:
- typeguards, var decls, several printing bug fixed
- now fully idempotent on many files (which are accepted by 6g afterwards)
- still some detail issues

R=r
OCL=17310
CL=17310

16 years agoput toplevel & check back and add test
Russ Cox [Thu, 16 Oct 2008 21:02:20 +0000 (14:02 -0700)]
put toplevel & check back and add test

R=ken
OCL=17307
CL=17307

16 years agodiagnosed some incorrect
Ken Thompson [Thu, 16 Oct 2008 20:29:03 +0000 (13:29 -0700)]
diagnosed some incorrect
inputs for method receivers.

R=r
OCL=17304
CL=17304

16 years ago- composites, receivers, various add. checks
Robert Griesemer [Thu, 16 Oct 2008 19:16:50 +0000 (12:16 -0700)]
- composites, receivers, various add. checks

R=r
OCL=17295
CL=17295

16 years agoChange file name from "print" to "tostring" and update the rest.
Rob Pike [Thu, 16 Oct 2008 18:19:48 +0000 (11:19 -0700)]
Change file name from "print" to "tostring" and update the rest.

R=rsc
DELTA=225  (109 added, 107 deleted, 9 changed)
OCL=17294
CL=17294

16 years agoconvert print to ToString.
Rob Pike [Thu, 16 Oct 2008 18:12:02 +0000 (11:12 -0700)]
convert print to ToString.
file name change in next round.

R=rsc
DELTA=71  (18 added, 19 deleted, 34 changed)
OCL=17291
CL=17293

16 years agosnapshot:
Robert Griesemer [Thu, 16 Oct 2008 17:16:59 +0000 (10:16 -0700)]
snapshot:
- fallthrough stat, label decls
- improved printing layout

R=r
OCL=17283
CL=17283

16 years agodiagnose export of incomplete type
Russ Cox [Thu, 16 Oct 2008 00:51:23 +0000 (17:51 -0700)]
diagnose export of incomplete type

R=ken
OCL=17253
CL=17253

16 years agoremove hack now that vector of int works.
Rob Pike [Thu, 16 Oct 2008 00:20:37 +0000 (17:20 -0700)]
remove hack now that vector of int works.

R=rsc
DELTA=9  (0 added, 3 deleted, 6 changed)
OCL=17248
CL=17250

16 years agobasic types/interfaces test
Ken Thompson [Thu, 16 Oct 2008 00:15:47 +0000 (17:15 -0700)]
basic types/interfaces test

R=r
OCL=17247
CL=17247

16 years ago- updated makefile for gccgo
Robert Griesemer [Thu, 16 Oct 2008 00:13:00 +0000 (17:13 -0700)]
- updated makefile for gccgo

R=r
OCL=17243
CL=17245

16 years agoreflection type structure. no parsing etc. yet.
Rob Pike [Thu, 16 Oct 2008 00:11:51 +0000 (17:11 -0700)]
reflection type structure. no parsing etc. yet.
main is a simple tester outside the Makefile.

R=rsc
DELTA=455  (455 added, 0 deleted, 0 changed)
OCL=17235
CL=17242

16 years agoerror about & at top level until it is safe
Russ Cox [Thu, 16 Oct 2008 00:09:42 +0000 (17:09 -0700)]
error about & at top level until it is safe

R=ken
OCL=17241
CL=17241

16 years agointerface on arbitrary types
Ken Thompson [Thu, 16 Oct 2008 00:08:10 +0000 (17:08 -0700)]
interface on arbitrary types
global signatures for basic types

R=r
OCL=17238
CL=17240

16 years agosnapshot of pretty printer:
Robert Griesemer [Thu, 16 Oct 2008 00:06:28 +0000 (17:06 -0700)]
snapshot of pretty printer:
- almost there, receivers, labels, composites, comments are not yet printed
- runs through 18KLOC of Go code and prints it again

R=r
OCL=17237
CL=17237

16 years agobug is fixed
Rob Pike [Wed, 15 Oct 2008 18:49:34 +0000 (11:49 -0700)]
bug is fixed

R=ken
OCL=17208
CL=17208

16 years agosnapshot
Robert Griesemer [Wed, 15 Oct 2008 18:48:18 +0000 (11:48 -0700)]
snapshot
- fixed expression and statement printing
- missing: declarations, comments

R=r
OCL=17207
CL=17207

16 years agoMake regexp build and install officially
Rob Pike [Wed, 15 Oct 2008 05:16:45 +0000 (22:16 -0700)]
Make regexp build and install officially

R=rsc
DELTA=335  (172 added, 156 deleted, 7 changed)
OCL=17167
CL=17180

16 years agoupdate bug list
Rob Pike [Wed, 15 Oct 2008 02:41:05 +0000 (19:41 -0700)]
update bug list

R=ken
OCL=17169
CL=17169

16 years agomove regexp to lib
Rob Pike [Wed, 15 Oct 2008 02:22:17 +0000 (19:22 -0700)]
move regexp to lib
next cl will update names and add to build

R=rsc
DELTA=1876  (938 added, 938 deleted, 0 changed)
OCL=17149
CL=17166

16 years agosimplify comma code per ken's suggestion
Russ Cox [Wed, 15 Oct 2008 01:47:24 +0000 (18:47 -0700)]
simplify comma code per ken's suggestion

R=ken
OCL=17164
CL=17164

16 years ago- snapshot of pretty printer work
Robert Griesemer [Wed, 15 Oct 2008 01:14:01 +0000 (18:14 -0700)]
- snapshot of pretty printer work
- accepts all Go code (use -s flag)
- complete rewrite of AST, AST building, and printing
  (as a result much more compact)
- printing severely screwed up at the moment, but should be
  fully working in 1 more day

R=r
DELTA=2118  (514 added, 980 deleted, 624 changed)
OCL=17161
CL=17161

16 years agoadd some tests
Rob Pike [Wed, 15 Oct 2008 00:45:49 +0000 (17:45 -0700)]
add some tests
fix some bugs in () ordering and rune processing

R=rsc
DELTA=72  (27 added, 5 deleted, 40 changed)
OCL=17147
CL=17147

16 years agoallow trailing comma in braced initialized list
Russ Cox [Wed, 15 Oct 2008 00:10:39 +0000 (17:10 -0700)]
allow trailing comma in braced initialized list

R=ken
OCL=17141
CL=17143

16 years agodelete hack for interface equality now that it supported by the 6g compiler
Rob Pike [Tue, 14 Oct 2008 23:33:11 +0000 (16:33 -0700)]
delete hack for interface equality now that it supported by the 6g compiler

R=rsc
DELTA=21  (0 added, 21 deleted, 0 changed)
OCL=17123
CL=17136

16 years agoimplement matching
Rob Pike [Tue, 14 Oct 2008 23:32:43 +0000 (16:32 -0700)]
implement matching
clean up interface equality hack

still needs more tests; checking in for gccgo testing

R=rsc
DELTA=304  (261 added, 14 deleted, 29 changed)
OCL=17128
CL=17135

16 years agointerface equality (strings specifically)
Ken Thompson [Tue, 14 Oct 2008 23:10:44 +0000 (16:10 -0700)]
interface equality (strings specifically)

R=r
OCL=17134
CL=17134

16 years agointerface equality
Ken Thompson [Tue, 14 Oct 2008 22:08:23 +0000 (15:08 -0700)]
interface equality

R=r
OCL=17116
CL=17118

16 years agobug with struct-type { 1 }
Ken Thompson [Tue, 14 Oct 2008 19:48:14 +0000 (12:48 -0700)]
bug with struct-type { 1 }

R=r
OCL=17096
CL=17096

16 years agostack allocation for the init function
Ken Thompson [Tue, 14 Oct 2008 03:14:09 +0000 (20:14 -0700)]
stack allocation for the init function

R=r
OCL=17063
CL=17063

16 years ago6g thinks a struct with one entry yields a composite that is a basic conversion
Rob Pike [Mon, 13 Oct 2008 19:26:58 +0000 (12:26 -0700)]
6g thinks a struct with one entry yields a composite that is a basic conversion

R=rsc
DELTA=12  (12 added, 0 deleted, 0 changed)
OCL=16989
CL=16998

16 years agoadd character classes.
Rob Pike [Sat, 11 Oct 2008 23:48:05 +0000 (16:48 -0700)]
add character classes.
allocate into an array for easier scanning and printing.

R=rsc
DELTA=282  (193 added, 44 deleted, 45 changed)
OCL=16955
CL=16955

16 years agoconvert from integer indexes to interface variables.
Rob Pike [Sat, 11 Oct 2008 01:42:19 +0000 (18:42 -0700)]
convert from integer indexes to interface variables.
update printing.

R=rsc
DELTA=194  (60 added, 41 deleted, 93 changed)
OCL=16942
CL=16945

16 years ago- added language re: interface compparison using ==, !=
Robert Griesemer [Fri, 10 Oct 2008 23:34:44 +0000 (16:34 -0700)]
- added language re: interface compparison using ==, !=
(seems not controversial)

R=r
DELTA=8  (3 added, 2 deleted, 3 changed)
OCL=16940
CL=16940

16 years agohandle zeroed interface in ifaceI2I
Russ Cox [Fri, 10 Oct 2008 23:21:50 +0000 (16:21 -0700)]
handle zeroed interface in ifaceI2I

R=r
OCL=16938
CL=16938

16 years ago- added missing ';' according to new rules
Robert Griesemer [Fri, 10 Oct 2008 23:18:01 +0000 (16:18 -0700)]
- added missing ';' according to new rules
(no effect on the test, but now parseable)

R=r
OCL=16936
CL=16936

16 years agountil 6g implements it, warn about using int in interface.
Russ Cox [Fri, 10 Oct 2008 23:14:13 +0000 (16:14 -0700)]
until 6g implements it, warn about using int in interface.

R=ken
OCL=16935
CL=16935

16 years ago- implemented heuristic for composite literals starting with a type name:
Robert Griesemer [Fri, 10 Oct 2008 23:03:32 +0000 (16:03 -0700)]
- implemented heuristic for composite literals starting with a type name:
  if in a if, for, or switch header, must be parenthesized
- implemented string concatenation
- simplified a lot of code
- added many more tests: can now parse all *.go files I got my hands on
- printing output currently broken in some cases, use with -s (silent) option

R=r
OCL=16932
CL=16934

16 years agoadd sys.BUG_intereq to compare interfaces for equality
Russ Cox [Fri, 10 Oct 2008 22:30:32 +0000 (15:30 -0700)]
add sys.BUG_intereq to compare interfaces for equality

R=r
OCL=16929
CL=16929

16 years ago- removed extra package clause
Robert Griesemer [Fri, 10 Oct 2008 21:50:23 +0000 (14:50 -0700)]
- removed extra package clause

R=rsc
DELTA=2  (0 added, 2 deleted, 0 changed)
OCL=16927
CL=16927

16 years ago- Fixed bug in spec: PrimaryExpr is too restrictive in most places
Robert Griesemer [Fri, 10 Oct 2008 19:45:44 +0000 (12:45 -0700)]
- Fixed bug in spec: PrimaryExpr is too restrictive in most places
(for instance *p was not allowed on the left side of "="). Changed
to Expression everywhere (this is too liberal, UnaryExpr is probably
good enough, but it seems funny, and we need to check semantically
anyway). This matches 6g yacc.
- Write expression syntac recursively to express evaluation order
and precedence syntactically.
- Organized open issues list, folded in stuff from todo.txt which
is now obsolete.

R=r
DELTA=108  (41 added, 52 deleted, 15 changed)
OCL=16903
CL=16910

16 years agocat unmatched )
Rob Pike [Fri, 10 Oct 2008 19:41:43 +0000 (12:41 -0700)]
cat unmatched )
delete unused This() in preparation for removing linking via array indexes

R=rsc
DELTA=26  (2 added, 23 deleted, 1 changed)
OCL=16895
CL=16909

16 years ago- added missing case for opt. semicolons (labels)
Robert Griesemer [Fri, 10 Oct 2008 03:05:24 +0000 (20:05 -0700)]
- added missing case for opt. semicolons (labels)
- more precise wording by having an explicit list of cases
- simplified statement list

R=r
DELTA=16  (10 added, 0 deleted, 6 changed)
OCL=16871
CL=16875

16 years agobeginnings of regular expression library.
Rob Pike [Fri, 10 Oct 2008 02:40:53 +0000 (19:40 -0700)]
beginnings of regular expression library.
will move elsewhere when more complete.
parses, does not execute.
no character classes yet.

R=rsc
DELTA=522  (522 added, 0 deleted, 0 changed)
OCL=16863
CL=16874

16 years ago- more cleanups (simpler code for optional semi's, bug fixes)
Robert Griesemer [Fri, 10 Oct 2008 01:03:16 +0000 (18:03 -0700)]
- more cleanups (simpler code for optional semi's, bug fixes)

R=r
OCL=16869
CL=16869

16 years agoMore spec progress:
Robert Griesemer [Fri, 10 Oct 2008 00:12:09 +0000 (17:12 -0700)]
More spec progress:
- language for selectors and array/map indices
- formal description of syntax notation used
- factor out common productions to better show
  symmetries in grammar

R=r
DELTA=113  (77 added, 13 deleted, 23 changed)
OCL=16853
CL=16865

16 years agoAdding Mkdir.
Cary Hull [Thu, 9 Oct 2008 07:15:37 +0000 (00:15 -0700)]
Adding Mkdir.

R=rsc
APPROVED=rsc
DELTA=21  (21 added, 0 deleted, 0 changed)
OCL=16794
CL=16803

16 years ago- make optional semicolons explicit in grammar in all places
Robert Griesemer [Thu, 9 Oct 2008 00:05:30 +0000 (17:05 -0700)]
- make optional semicolons explicit in grammar in all places
except in statement list, where it is expressed in words
- allow for empty import, const, type, and var decl lists inside ()'s
- fixed grammar for inc/dec statements
- added empty statement as it appears to be accepted by 6g

R=r
DELTA=75  (23 added, 21 deleted, 31 changed)
OCL=16785
CL=16785

16 years agotest of new empty productions
Russ Cox [Wed, 8 Oct 2008 22:33:18 +0000 (15:33 -0700)]
test of new empty productions

R=gri
DELTA=8  (8 added, 0 deleted, 0 changed)
OCL=16765
CL=16767

16 years agoadd empty var ( ), type ( ), const ( ) factorings
Russ Cox [Wed, 8 Oct 2008 22:33:09 +0000 (15:33 -0700)]
add empty var ( ), type ( ), const ( ) factorings
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

16 years agosplit all.bash into make.bash and run.bash
Russ Cox [Wed, 8 Oct 2008 16:46:54 +0000 (09:46 -0700)]
split all.bash into make.bash and run.bash

R=r
OCL=16720
CL=16728

16 years agoadd http to lib build
Russ Cox [Wed, 8 Oct 2008 16:46:31 +0000 (09:46 -0700)]
add http to lib build

R=r
OCL=16721
CL=16727

16 years agocheck $GOROOT before diving into build
Russ Cox [Wed, 8 Oct 2008 16:46:20 +0000 (09:46 -0700)]
check $GOROOT before diving into build

R=r
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=16726
CL=16726

16 years agoFixes breakage caused by semicolon restriction.
Cary Hull [Wed, 8 Oct 2008 16:34:50 +0000 (09:34 -0700)]
Fixes breakage caused by semicolon restriction.

R=rsc
APPROVED=rsc
DELTA=50  (4 added, 0 deleted, 46 changed)
OCL=16707
CL=16725

16 years agomore interface checks:
Russ Cox [Wed, 8 Oct 2008 16:21:57 +0000 (09:21 -0700)]
more interface checks:
- 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

16 years ago- don't allow empty decl lists (e.g. const ())
Robert Griesemer [Wed, 8 Oct 2008 01:30:08 +0000 (18:30 -0700)]
- don't allow empty decl lists (e.g. const ())

R=r
OCL=16698
CL=16698

16 years ago- accept new semicolon syntax (at the moment,
Robert Griesemer [Wed, 8 Oct 2008 00:57:19 +0000 (17:57 -0700)]
- accept new semicolon syntax (at the moment,
the parser accepts a bit more then it should)

R=r
OCL=16694
CL=16694

16 years agoUnterminated declaration breaks build.
Cary Hull [Wed, 8 Oct 2008 00:25:32 +0000 (17:25 -0700)]
Unterminated declaration breaks build.

R=rsc
APPROVED=rsc
DELTA=1  (0 added, 0 deleted, 1 changed)
OCL=16688
CL=16690

16 years ago- precise scope rules
Robert Griesemer [Wed, 8 Oct 2008 00:14:30 +0000 (17:14 -0700)]
- precise scope rules
- forward decls for interface and struct types
- complete & incomplete types
- optional semicolons

R=r
DELTA=216  (95 added, 15 deleted, 106 changed)
OCL=16465
CL=16687

16 years agoremove support for *T as an implicit declaration of T
Russ Cox [Tue, 7 Oct 2008 20:00:10 +0000 (13:00 -0700)]
remove support for *T as an implicit declaration of T

R=ken
OCL=16651
CL=16653

16 years agoremove uses of *T as an implicit forward declaration of T
Russ Cox [Tue, 7 Oct 2008 19:59:54 +0000 (12:59 -0700)]
remove uses of *T as an implicit forward declaration of T

R=gri,r
OCL=16648
CL=16652

16 years agofix bug:
Russ Cox [Tue, 7 Oct 2008 19:42:57 +0000 (12:42 -0700)]
fix bug:

type T struct
export type T struct { a int }

was not exporting T

R=ken
OCL=16650
CL=16650

16 years agotest that mutually recursive interfaces compile
Russ Cox [Tue, 7 Oct 2008 19:36:39 +0000 (12:36 -0700)]
test that mutually recursive interfaces compile

R=r
DELTA=18  (18 added, 0 deleted, 0 changed)
OCL=16639
CL=16647

16 years agoimplement new semicolon rules:
Russ Cox [Tue, 7 Oct 2008 19:36:30 +0000 (12:36 -0700)]
implement new semicolon rules:

 *  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

16 years agoupdate code to follow new semicolon rules:
Russ Cox [Tue, 7 Oct 2008 19:31:31 +0000 (12:31 -0700)]
update code to follow new semicolon rules:

 *  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

16 years agosys.stringtorune doesn't need a length parameter.
Rob Pike [Tue, 7 Oct 2008 17:03:34 +0000 (10:03 -0700)]
sys.stringtorune doesn't need a length parameter.

R=rsc
DELTA=7  (0 added, 0 deleted, 7 changed)
OCL=16600
CL=16630

16 years agochange type names to go live at the name, so that
Russ Cox [Mon, 6 Oct 2008 23:44:17 +0000 (16:44 -0700)]
change type names to go live at the name, so that

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

16 years agochange in spec results in non-error
Rob Pike [Mon, 6 Oct 2008 23:27:14 +0000 (16:27 -0700)]
change in spec results in non-error

R=gri
DELTA=4  (0 added, 3 deleted, 1 changed)
OCL=16565
CL=16579

16 years agosilence gcc warning - initialize two variables
Russ Cox [Mon, 6 Oct 2008 20:52:23 +0000 (13:52 -0700)]
silence gcc warning - initialize two variables

R=ken
OCL=16550
CL=16550

16 years agoChange old-style export declaration to new style export of
Ian Lance Taylor [Mon, 6 Oct 2008 20:12:03 +0000 (13:12 -0700)]
Change old-style export declaration to new style export of
type definition.

R=r
DELTA=3  (0 added, 2 deleted, 1 changed)
OCL=16537
CL=16545

16 years agobug026 and bug060 are fixed. update.
Rob Pike [Sun, 5 Oct 2008 15:34:48 +0000 (08:34 -0700)]
bug026 and bug060 are fixed. update.

R=rsc
DELTA=87  (37 added, 50 deleted, 0 changed)
OCL=16498
CL=16507

16 years agofix method use bug in powser1.
Russ Cox [Sun, 5 Oct 2008 05:11:26 +0000 (22:11 -0700)]
fix method use bug in powser1.

R=r
DELTA=7  (2 added, 2 deleted, 3 changed)
OCL=16495
CL=16499

16 years agobug060
Ken Thompson [Sun, 5 Oct 2008 00:11:01 +0000 (17:11 -0700)]
bug060

R=r
OCL=16497
CL=16497

16 years agobug 026
Ken Thompson [Sat, 4 Oct 2008 22:17:49 +0000 (15:17 -0700)]
bug 026

R=r
OCL=16494
CL=16494

16 years agochange *a1++; to plain a1++
Russ Cox [Sat, 4 Oct 2008 09:54:19 +0000 (02:54 -0700)]
change *a1++; to plain a1++

R=ken
DELTA=2  (0 added, 0 deleted, 2 changed)
OCL=16489
CL=16489

16 years agoadd method test & fix method name bugs
Russ Cox [Sat, 4 Oct 2008 09:51:03 +0000 (02:51 -0700)]
add method test & fix method name bugs

R=ken,r
DELTA=86  (72 added, 9 deleted, 5 changed)
OCL=16488
CL=16488

16 years agoconst bug, name bug - working on both
Russ Cox [Sat, 4 Oct 2008 00:06:24 +0000 (17:06 -0700)]
const bug, name bug - working on both

R=r
DELTA=43  (43 added, 0 deleted, 0 changed)
OCL=16468
CL=16475

16 years agosilence gcc warnings
Russ Cox [Fri, 3 Oct 2008 23:23:02 +0000 (16:23 -0700)]
silence gcc warnings

R=ken
OCL=16449
CL=16466

16 years agonew import/export format
Russ Cox [Fri, 3 Oct 2008 23:15:55 +0000 (16:15 -0700)]
new import/export format

    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

16 years agointerfaces of all types
Ken Thompson [Fri, 3 Oct 2008 23:12:21 +0000 (16:12 -0700)]
interfaces of all types

R=r
OCL=16462
CL=16462

16 years agoallow prof to launch the process
Rob Pike [Fri, 3 Oct 2008 21:49:10 +0000 (14:49 -0700)]
allow prof to launch the process

R=rsc
DELTA=32  (30 added, 0 deleted, 2 changed)
OCL=16440
CL=16445

16 years ago- precise scope rules
Robert Griesemer [Fri, 3 Oct 2008 21:04:28 +0000 (14:04 -0700)]
- precise scope rules
- clarified naming of invisible fields
- fixed syntax of expression statements

R=r
DELTA=70  (33 added, 4 deleted, 33 changed)
OCL=16424
CL=16439

16 years agoRevised wording about sends.
Rob Pike [Fri, 3 Oct 2008 18:18:45 +0000 (11:18 -0700)]
Revised wording about sends.
Evaluation is done before communication starts.

R=gri
DELTA=19  (4 added, 1 deleted, 14 changed)
OCL=16357
CL=16416

16 years agomore on arbitrary receiver types
Ken Thompson [Fri, 3 Oct 2008 03:51:10 +0000 (20:51 -0700)]
more on arbitrary receiver types
this CL passes the tests, but should
be considered unstable

R=r
OCL=16390
CL=16390

16 years agonames now println/panicln
Ken Thompson [Thu, 2 Oct 2008 22:37:15 +0000 (15:37 -0700)]
names now println/panicln
bug fix in named-return

R=r
OCL=16377
CL=16377

16 years agoadded printn and panicn
Ken Thompson [Thu, 2 Oct 2008 21:38:07 +0000 (14:38 -0700)]
added printn and panicn
prints that insert spaces and new line

R=r
OCL=16370
CL=16370

16 years agoadd values to some "return" statements.
Russ Cox [Thu, 2 Oct 2008 18:34:04 +0000 (11:34 -0700)]
add values to some "return" statements.
delete unused variables

R=ken
OCL=16360
CL=16360