]> Cypherpunks repositories - gostls13.git/log
gostls13.git
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

16 years agoadd a little text clarifying the behavior of 'select'
Rob Pike [Thu, 2 Oct 2008 17:37:12 +0000 (10:37 -0700)]
add a little text clarifying the behavior of 'select'

R=gri
DELTA=18  (8 added, 2 deleted, 8 changed)
OCL=16356
CL=16356

16 years agoclear output parameters
Ken Thompson [Thu, 2 Oct 2008 03:00:58 +0000 (20:00 -0700)]
clear output parameters

R=r
OCL=16345
CL=16345

16 years agoClarifications re: anonymous fields in structs:
Robert Griesemer [Thu, 2 Oct 2008 00:21:19 +0000 (17:21 -0700)]
Clarifications re: anonymous fields in structs:
- typename cannot refer to interface types
- clarified syntax
- added TODO re: type name issue with qualified identifiers

Changed/fixed order of operators/keywords.

R=r
DELTA=10  (3 added, 0 deleted, 7 changed)
OCL=16337
CL=16339

16 years agoWith the cleanup of method types, this test case is now
Ian Lance Taylor [Thu, 2 Oct 2008 00:01:42 +0000 (17:01 -0700)]
With the cleanup of method types, this test case is now
invalid.  The receiver type is not permitted to be a pointer
type.  Since 6g currently accepts it, this moves the test case
back to the bugs directory.

R=gri
DELTA=22  (11 added, 11 deleted, 0 changed)
OCL=16284
CL=16336

16 years ago- fixed Makefile, added more tests
Robert Griesemer [Wed, 1 Oct 2008 21:31:44 +0000 (14:31 -0700)]
- fixed Makefile, added more tests
- fixed parsing of parameter lists (sigh)

R=r
DELTA=48  (22 added, 7 deleted, 19 changed)
OCL=16319
CL=16321

16 years agoinitialization of
Ken Thompson [Wed, 1 Oct 2008 21:16:57 +0000 (14:16 -0700)]
initialization of
var a,b int;

R=r
OCL=16318
CL=16318

16 years agoadd a script to build *everything*
Russ Cox [Wed, 1 Oct 2008 18:06:13 +0000 (11:06 -0700)]
add a script to build *everything*

R=r
DELTA=41  (41 added, 0 deleted, 0 changed)
OCL=16290
CL=16293

16 years agomore fine-tuning of ;'s
Robert Griesemer [Wed, 1 Oct 2008 02:31:27 +0000 (19:31 -0700)]
more fine-tuning of ;'s

R=r
OCL=16274
CL=16274

16 years ago- fixed semicolon handling in pretty printer
Robert Griesemer [Wed, 1 Oct 2008 01:50:29 +0000 (18:50 -0700)]
- fixed semicolon handling in pretty printer
- some scanner cleanup
- new pretty-printed code can be compiled again (for some files)

R=r
OCL=16272
CL=16272

16 years agoupdate golden.out
Russ Cox [Tue, 30 Sep 2008 22:45:49 +0000 (15:45 -0700)]
update golden.out

R=r
OCL=16250
CL=16250

16 years agoremove ( ) around mismatch type prints,
Russ Cox [Tue, 30 Sep 2008 22:38:41 +0000 (15:38 -0700)]
remove ( ) around mismatch type prints,
so that they don't look like functions.

R=ken
OCL=16244
CL=16244

16 years agopretty types; use 6g -t to disable
Russ Cox [Tue, 30 Sep 2008 22:35:40 +0000 (15:35 -0700)]
pretty types; use 6g -t to disable

R=ken
OCL=16240
CL=16242

16 years agotests of new func arg code
Russ Cox [Tue, 30 Sep 2008 21:08:43 +0000 (14:08 -0700)]
tests of new func arg code

R=r
DELTA=41  (41 added, 0 deleted, 0 changed)
OCL=16212
CL=16223

16 years agoi can import "net" in package net
Russ Cox [Tue, 30 Sep 2008 21:03:13 +0000 (14:03 -0700)]
i can import "net" in package net
and still have a variable named "net"

R=r
DELTA=18  (0 added, 0 deleted, 18 changed)
OCL=16220
CL=16222

16 years agofor loops in hashmap.
Russ Cox [Tue, 30 Sep 2008 21:02:53 +0000 (14:02 -0700)]
for loops in hashmap.
a few missing FLUSH.

R=ken
OCL=16221
CL=16221

16 years agocleanup export
Russ Cox [Tue, 30 Sep 2008 20:52:44 +0000 (13:52 -0700)]
cleanup export

R=ken
OCL=16219
CL=16219

16 years agofix export bug for /usr/r/rpc
Russ Cox [Tue, 30 Sep 2008 20:49:31 +0000 (13:49 -0700)]
fix export bug for /usr/r/rpc

R=ken
OCL=16218
CL=16218

16 years agoupdate golden for new error messages
Rob Pike [Tue, 30 Sep 2008 20:07:38 +0000 (13:07 -0700)]
update golden for new error messages

R=rsc
OCL=16213
CL=16213

16 years ago- exceptional conditions during expression evaluation are undefined
Robert Griesemer [Tue, 30 Sep 2008 20:02:50 +0000 (13:02 -0700)]
- exceptional conditions during expression evaluation are undefined
- "nil" for interfaces, comparison against "nil"

R=r
DELTA=38  (24 added, 5 deleted, 9 changed)
OCL=16207
CL=16211

16 years agofix up arg list parsing to handle any names:
Russ Cox [Tue, 30 Sep 2008 19:53:11 +0000 (12:53 -0700)]
fix up arg list parsing to handle any names:

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

16 years ago104, 107, 108: they are known to fail, so mark them appropriately.
Rob Pike [Tue, 30 Sep 2008 19:31:47 +0000 (12:31 -0700)]
104, 107, 108: they are known to fail, so mark them appropriately.
update golden
add the "goroutines" test

R=iant
DELTA=74  (36 added, 23 deleted, 15 changed)
OCL=16194
CL=16206

16 years ago- type of array literals is always fixed array
Robert Griesemer [Tue, 30 Sep 2008 17:57:59 +0000 (10:57 -0700)]
- type of array literals is always fixed array
- changed terminology from "embedded type" to "anonymous field"

R=r
DELTA=38  (7 added, 2 deleted, 29 changed)
OCL=16193
CL=16196

16 years ago- corrections and more on interface types
Robert Griesemer [Tue, 30 Sep 2008 03:37:46 +0000 (20:37 -0700)]
- corrections and more on interface types

R=r
DELTA=35  (12 added, 13 deleted, 10 changed)
OCL=16162
CL=16164

16 years agominor bugs
Ken Thompson [Tue, 30 Sep 2008 03:33:51 +0000 (20:33 -0700)]
minor bugs

R=r
OCL=16163
CL=16163

16 years agofix some typos, mostly
Rob Pike [Tue, 30 Sep 2008 03:06:48 +0000 (20:06 -0700)]
fix some typos, mostly

R=gri
OCL=16161
CL=16161

16 years agoSome initial language towards embedded types and methods for all types.
Robert Griesemer [Tue, 30 Sep 2008 01:41:30 +0000 (18:41 -0700)]
Some initial language towards embedded types and methods for all types.
More to come.

R=r
DELTA=74  (47 added, 8 deleted, 19 changed)
OCL=16156
CL=16159

16 years agoTest that floating point constants resolve to type "float".
Ian Lance Taylor [Tue, 30 Sep 2008 01:17:42 +0000 (18:17 -0700)]
Test that floating point constants resolve to type "float".
Currently 6g seems to resolve them to type "double".

R=ken,r
DELTA=30  (30 added, 0 deleted, 0 changed)
OCL=16132
CL=16152

16 years agoUse unsigned int in itoa to avoid relying on the behaviour of
Ian Lance Taylor [Mon, 29 Sep 2008 20:40:23 +0000 (13:40 -0700)]
Use unsigned int in itoa to avoid relying on the behaviour of
signed integer overflow when negating the most negative
integer.

R=rsc
DELTA=11  (0 added, 7 deleted, 4 changed)
OCL=16105
CL=16120

16 years ago* implement Linux epoll for polling i/o
Russ Cox [Mon, 29 Sep 2008 20:37:00 +0000 (13:37 -0700)]
* implement Linux epoll for polling i/o
* isolate OS-specific polling goop in Pollster type
* move generic poll loop out of fd_darwin.go into fd.go

R=r
DELTA=782  (448 added, 281 deleted, 53 changed)
OCL=16108
CL=16119

16 years agodelete unused files
Russ Cox [Mon, 29 Sep 2008 20:16:28 +0000 (13:16 -0700)]
delete unused files

R=r
DELTA=494  (0 added, 494 deleted, 0 changed)
OCL=16109
CL=16115

16 years agomake bugs not fail
Russ Cox [Mon, 29 Sep 2008 20:16:22 +0000 (13:16 -0700)]
make bugs not fail

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

16 years ago- added language about string literal concatenation
Robert Griesemer [Mon, 29 Sep 2008 19:09:00 +0000 (12:09 -0700)]
- added language about string literal concatenation
- added "..." to list of delimiters (slightly re-arranged that table)
- rename of 2 productions for more consistent naming

R=r
DELTA=20  (7 added, 1 deleted, 12 changed)
OCL=16101
CL=16103

16 years agoStoring an out of range constant into a variable should
Ian Lance Taylor [Mon, 29 Sep 2008 18:03:21 +0000 (11:03 -0700)]
Storing an out of range constant into a variable should
ideally cause the compiler to give an error.  Right now 6g
warns about large shifts but does not give an error.  This CL
removes the out of range shift from shift.go, so that it will
work with gccgo, and adds a test case in bugs/ to be fixed at
a later date.

R=ken,r
DELTA=23  (9 added, 14 deleted, 0 changed)
OCL=16085
CL=16088

16 years agotoward methods on any type
Ken Thompson [Mon, 29 Sep 2008 03:22:31 +0000 (20:22 -0700)]
toward methods on any type

R=r
OCL=16068
CL=16068

16 years agobug in simul assignment
Ken Thompson [Sun, 28 Sep 2008 00:46:40 +0000 (17:46 -0700)]
bug in simul assignment

R=r
OCL=16053
CL=16053

16 years ago- allow for embeded types in fields, and parameter lists w/o parameter names
Robert Griesemer [Sun, 28 Sep 2008 00:42:18 +0000 (17:42 -0700)]
- allow for embeded types in fields, and parameter lists w/o parameter names
- temporary work-around for 6g bug

R=r
OCL=16052
CL=16052

16 years ago- added TODO
Robert Griesemer [Sat, 27 Sep 2008 21:51:31 +0000 (14:51 -0700)]
- added TODO
- changed FieldDecl production in preparation for inlined types

R=r
DELTA=6  (4 added, 0 deleted, 2 changed)
OCL=16046
CL=16046

16 years agochange print(float) from 5 to 7 sig digits
Ken Thompson [Sat, 27 Sep 2008 20:33:50 +0000 (13:33 -0700)]
change print(float) from 5 to 7 sig digits

R=r
OCL=16045
CL=16045

16 years agobug in argument passing
Ken Thompson [Sat, 27 Sep 2008 20:32:38 +0000 (13:32 -0700)]
bug in argument passing

R=r
OCL=16044
CL=16044

16 years agoCorrect zoneinfo version number: it's not 2, it's '2'.
Ian Lance Taylor [Sat, 27 Sep 2008 16:39:37 +0000 (09:39 -0700)]
Correct zoneinfo version number: it's not 2, it's '2'.

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

16 years agoexport
Ken Thompson [Sat, 27 Sep 2008 04:27:26 +0000 (21:27 -0700)]
export
syntax for inheritance

R=r
OCL=16028
CL=16028

16 years agobug with array bounds
Ken Thompson [Sat, 27 Sep 2008 00:41:43 +0000 (17:41 -0700)]
bug with array bounds

R=r
OCL=16021
CL=16023

16 years agoexport
Ken Thompson [Sat, 27 Sep 2008 00:41:23 +0000 (17:41 -0700)]
export

R=r
OCL=16018
CL=16022

16 years ago- added language with respect to init() restrictions
Robert Griesemer [Fri, 26 Sep 2008 23:41:50 +0000 (16:41 -0700)]
- added language with respect to init() restrictions

R=r
DELTA=10  (9 added, 0 deleted, 1 changed)
OCL=16016
CL=16016

16 years agoDarwin kqueue/kevent-based network FDs
Russ Cox [Fri, 26 Sep 2008 21:46:28 +0000 (14:46 -0700)]
Darwin kqueue/kevent-based network FDs

R=r
OCL=15998
CL=16004

16 years agoadd os.Pipe
Russ Cox [Fri, 26 Sep 2008 21:31:17 +0000 (14:31 -0700)]
add os.Pipe

R=r
OCL=15989
CL=16001

16 years agofix build: new net Makefile
Russ Cox [Fri, 26 Sep 2008 21:18:34 +0000 (14:18 -0700)]
fix build: new net Makefile

TBR=r
OCL=15996
CL=15996

16 years agomove src/syscall to src/lib/syscall.
Russ Cox [Fri, 26 Sep 2008 21:11:26 +0000 (14:11 -0700)]
move src/syscall to src/lib/syscall.
enforce rule: all kernel data structures and constants
go in syscall module.
move things that should be in syscall out of net.
make net a single package.

R=r
OCL=15985
CL=15994

16 years agolibmach_amd64: refresh darwin thread list each time we get asked.
Russ Cox [Fri, 26 Sep 2008 21:10:33 +0000 (14:10 -0700)]
libmach_amd64: refresh darwin thread list each time we get asked.

R=r
DELTA=1  (1 added, 0 deleted, 0 changed)
OCL=15982
CL=15993

16 years agogo/acid/go
Russ Cox [Fri, 26 Sep 2008 21:10:26 +0000 (14:10 -0700)]
go/acid/go

R=r
DELTA=99  (95 added, 1 deleted, 3 changed)
OCL=15983
CL=15992

16 years agoSimplification of Conversions section:
Robert Griesemer [Fri, 26 Sep 2008 21:04:21 +0000 (14:04 -0700)]
Simplification of Conversions section:
- leave only basic type conversions in that section
- we have a section of composite literals which covers those
- we have a section prepared (but not written) on type guards
- the built-in function "convert" doesn't need to be exposed
  as it is redundant

R=r
DELTA=101  (6 added, 77 deleted, 18 changed)
OCL=15986
CL=15991

16 years ago- fixed Go statement syntax (only notational change)
Robert Griesemer [Fri, 26 Sep 2008 20:38:38 +0000 (13:38 -0700)]
- fixed Go statement syntax (only notational change)
- simplified Assignment syntax (only notational change)
- added TODOs
- made old text invisible by moving it into HTML comment

R=r
DELTA=107  (4 added, 95 deleted, 8 changed)
OCL=15972
CL=15987

16 years agotest and fix non-blocking chan ops on buffered chans
Russ Cox [Fri, 26 Sep 2008 18:47:04 +0000 (11:47 -0700)]
test and fix non-blocking chan ops on buffered chans

R=ken
DELTA=68  (19 added, 0 deleted, 49 changed)
OCL=15966
CL=15969