Russ Cox
079e038aca
exit with non-zero status for incompatible pointer type warnings
...
R=r
DELTA=9 (7 added, 0 deleted, 2 changed)
OCL=34499
CL=34499
2009-09-09 16:45:23 -07:00
Rob Pike
f966ba1df9
use the new type switch multicase to clean up a little.
...
R=rsc
DELTA=28 (7 added, 16 deleted, 5 changed)
OCL=34487
CL=34487
2009-09-09 10:32:26 -07:00
Russ Cox
f4ee9f133c
check type of string/map/array index expressions
...
R=ken
OCL=34478
CL=34480
2009-09-09 01:31:10 -07:00
Russ Cox
83bdb805a2
error message fixes
...
x == nil
x.go:5: cannot use nil as bool
c := x.(type);
x.go:88: use of .(type) outside type switch
R=ken
OCL=34476
CL=34476
2009-09-09 01:21:20 -07:00
Russ Cox
e780fa8669
defining package block names must override
...
universe block names.
BUG=2097244
R=ken
OCL=34295
CL=34473
2009-09-09 01:01:39 -07:00
Russ Cox
5d16d23362
update type switch to match spec.
...
R=ken
OCL=34471
CL=34471
2009-09-09 00:18:16 -07:00
Russ Cox
5438be4541
write-only variable _
...
R=ken
OCL=34465
CL=34470
2009-09-08 23:16:19 -07:00
Rob Pike
c77c3b0196
string range
...
R=rsc
DELTA=22 (19 added, 0 deleted, 3 changed)
OCL=34463
CL=34463
2009-09-08 17:11:57 -07:00
Ken Thompson
32aa5be6ef
init context for composit literals
...
R=rsc
OCL=34462
CL=34462
2009-09-08 15:52:27 -07:00
Robert Griesemer
506c008092
cosmetic changes:
...
- fixed a couple of broken links
- changed some explicit section references into implicit ones
R=r
DELTA=27 (0 added, 2 deleted, 25 changed)
OCL=34461
CL=34461
2009-09-08 15:41:14 -07:00
Russ Cox
54414ad866
add -S flag to print size of symbol
...
R=r
DELTA=24 (15 added, 0 deleted, 9 changed)
OCL=34447
CL=34458
2009-09-08 14:40:27 -07:00
Robert Griesemer
019e14e32e
- clarify vector comment
...
- adjusted a test to check claim
R=rsc
DELTA=3 (2 added, 0 deleted, 1 changed)
OCL=34454
CL=34456
2009-09-08 14:29:41 -07:00
Ken Thompson
a4448a97d8
compound literal test
...
R=rsc
OCL=34453
CL=34455
2009-09-08 14:26:39 -07:00
Russ Cox
7a0f4cac03
pass Type* to makechan and makemap so that
...
they can get the official alignment out of there
instead of guessing.
R=ken
OCL=34450
CL=34450
2009-09-08 13:46:54 -07:00
Russ Cox
bd0c13e9f8
documentation edits:
...
add comments showing Go syntax for each token.
move doc comments below hidden begin constants
R=gri
DELTA=66 (3 added, 3 deleted, 60 changed)
OCL=34334
CL=34445
2009-09-08 12:27:09 -07:00
Ken Thompson
0421cf072e
maps in static initialization
...
R=rsc
OCL=34434
CL=34434
2009-09-07 17:36:47 -07:00
Ken Thompson
a24a26c107
more static init
...
almost done
R=rsc
OCL=34422
CL=34422
2009-09-06 15:03:51 -07:00
Ken Thompson
18f2e360a0
composit literals
...
plateau - more to come
R=rsc
OCL=34413
CL=34413
2009-09-05 20:32:24 -07:00
Austin Clements
eabcb10a32
Don't crash in Sym.ReceiverName for symbols like "x.x"
...
R=rsc
APPROVED=rsc
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=34404
CL=34406
2009-09-04 16:12:50 -07:00
Russ Cox
c702bdd828
script for running test programs in interpreter.
...
tweak test/literal.go to give more information.
R=austin
DELTA=45 (43 added, 0 deleted, 2 changed)
OCL=34381
CL=34398
2009-09-04 13:04:11 -07:00
Austin Clements
c7d27f88f8
Make world.Define{Const,Var} indicate if the definition was
...
successful.
R=rsc
APPROVED=rsc
DELTA=43 (31 added, 0 deleted, 12 changed)
OCL=34375
CL=34397
2009-09-04 12:55:25 -07:00
Austin Clements
fdf5efe43c
Update debugger to use Abort interface
...
R=rsc
APPROVED=rsc
DELTA=314 (132 added, 2 deleted, 180 changed)
OCL=34376
CL=34396
2009-09-04 11:58:00 -07:00
Austin Clements
05522cd51e
s/Thread/Goroutine/
...
R=rsc
APPROVED=rsc
DELTA=328 (112 added, 110 deleted, 106 changed)
OCL=34356
CL=34356
2009-09-03 17:41:25 -07:00
Russ Cox
920c6106ca
top-level func
...
R=austin
DELTA=21 (5 added, 10 deleted, 6 changed)
OCL=34355
CL=34355
2009-09-03 17:22:20 -07:00
Austin Clements
851497bc65
Thread Thread into Value Get/Set/Assign so other Value
...
implementations can abort. Make genConstant get values lazily
since we need the Thread now.
R=rsc
APPROVED=rsc
DELTA=299 (8 added, 19 deleted, 272 changed)
OCL=34353
CL=34353
2009-09-03 17:14:49 -07:00
Russ Cox
45eadcf4b8
add ParseDeclList
...
R=austin
DELTA=34 (34 added, 0 deleted, 0 changed)
OCL=34280
CL=34352
2009-09-03 17:01:10 -07:00
Austin Clements
db27b5bcb1
Implement Go threads. Implement a general event system
...
including breakpoints and Go thread create/exit.
R=rsc
APPROVED=rsc
DELTA=751 (729 added, 6 deleted, 16 changed)
OCL=34345
CL=34351
2009-09-03 16:59:41 -07:00
Russ Cox
55ba20ec2d
parse expression statements beginning with
...
arithmetic unary operators + - ^
R=r
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=34338
CL=34350
2009-09-03 16:37:02 -07:00
Russ Cox
dcb1c5f5d4
convert testing to World.
...
start on Decl, but not working yet
R=austin
DELTA=762 (201 added, 205 deleted, 356 changed)
OCL=34335
CL=34349
2009-09-03 16:20:49 -07:00
Russ Cox
620dc595ff
missed in last compiler change
...
R=ken
OCL=34348
CL=34348
2009-09-03 16:18:03 -07:00
Russ Cox
74bb34c107
fix linux 386 build
...
R=austin
DELTA=140 (128 added, 0 deleted, 12 changed)
OCL=34344
CL=34347
2009-09-03 16:17:21 -07:00
Russ Cox
f2a8cd5ad9
corrected bug187; dropped on the floor somehow
...
R=austin
DELTA=23 (23 added, 0 deleted, 0 changed)
OCL=34340
CL=34346
2009-09-03 16:17:06 -07:00
Russ Cox
33be0c6465
nil in DeepEqual
...
R=r
DELTA=13 (5 added, 6 deleted, 2 changed)
OCL=34337
CL=34343
2009-09-03 15:45:43 -07:00
Russ Cox
107d404378
stop using filename for disambiguation within a package.
...
R=ken
OCL=34339
CL=34341
2009-09-03 15:23:21 -07:00
Russ Cox
a18208fb60
fix range on invalid utf8 bug
...
R=r
DELTA=42 (21 added, 20 deleted, 1 changed)
OCL=34328
CL=34333
2009-09-03 13:56:06 -07:00
Rob Pike
cf336b10df
partial rune at end makes string range loop forever
...
R=rsc
DELTA=20 (20 added, 0 deleted, 0 changed)
OCL=34330
CL=34332
2009-09-03 13:33:16 -07:00
Rob Pike
7f0dd8b1b7
new benchmark results.
...
main changes:
gccgo is much slower on binary-tree and fannkuch
6g seems to struggle with alignment of loops in nbody (dignosis uncertain)
6g is a little faster at regexps and concurrency
R=rsc
DELTA=93 (93 added, 0 deleted, 0 changed)
OCL=34320
CL=34322
2009-09-03 11:41:01 -07:00
Russ Cox
262b6462aa
fix bug187 (itself buggy)
...
R=austin
DELTA=26 (0 added, 26 deleted, 0 changed)
OCL=34294
CL=34317
2009-09-03 10:59:52 -07:00
Austin Clements
37aa6c9962
Fix uninstalling of breakpoints when a process exits. Process
...
exit is still handled poorly.
R=rsc
APPROVED=rsc
DELTA=6 (6 added, 0 deleted, 0 changed)
OCL=34288
CL=34315
2009-09-03 10:55:20 -07:00
Robert Griesemer
eea6b0d8d5
simplify extractEBNF code
...
R=rsc
DELTA=15 (3 added, 2 deleted, 10 changed)
OCL=34307
CL=34314
2009-09-03 10:53:27 -07:00
Robert Griesemer
d3ffc5e683
silence hlint
...
R=r
DELTA=7 (0 added, 4 deleted, 3 changed)
OCL=34310
CL=34312
2009-09-03 10:35:09 -07:00
Rob Pike
d4903abeae
use %L in listings so we see source line number in easy format
...
R=ken
DELTA=9 (0 added, 0 deleted, 9 changed)
OCL=34309
CL=34311
2009-09-03 10:24:38 -07:00
Robert Griesemer
6384cac343
linkify EBNF sections in spec when served via godoc
...
R=rsc
DELTA=217 (216 added, 0 deleted, 1 changed)
OCL=34279
CL=34306
2009-09-03 09:58:13 -07:00
Russ Cox
789e58cb04
unsafe is not declared in the outermost scope
...
R=gri
DELTA=3 (0 added, 3 deleted, 0 changed)
OCL=34305
CL=34305
2009-09-03 09:46:24 -07:00
Russ Cox
a1391c2d13
fix one bug involving [...] constructors.
...
added iant's bug202 (in main code)
and ken's bug203 (in init function).
bug187 remains at large.
R=ken
OCL=34293
CL=34293
2009-09-02 23:26:13 -07:00
Stephen Ma
5db1d3867f
Update restriction on declarations of methods.
...
APPROVED=rsc
DELTA=1 (0 added, 0 deleted, 1 changed)
OCL=34289
CL=34289
2009-09-02 20:09:25 -07:00
Russ Cox
c9edbbd4d0
convenience wrapper
...
R=austin
DELTA=142 (128 added, 4 deleted, 10 changed)
OCL=34275
CL=34284
2009-09-02 17:15:43 -07:00
Rob Pike
9e85c790e5
fix initialization of noreturn
...
R=ken
DELTA=3 (0 added, 0 deleted, 3 changed)
OCL=34283
CL=34283
2009-09-02 17:14:30 -07:00
Rob Pike
8aec612a80
for loops
...
comment out incomplete stuff
R=rsc
DELTA=61 (58 added, 0 deleted, 3 changed)
OCL=34278
CL=34281
2009-09-02 16:41:41 -07:00
Russ Cox
dd7b583179
move abortChan into Thread.
...
reuse Thread in function calls.
R=austin
DELTA=59 (8 added, 7 deleted, 44 changed)
OCL=34266
CL=34266
2009-09-02 14:11:40 -07:00