summaryrefslogtreecommitdiff
path: root/doc/go_spec.html
AgeCommit message (Collapse)AuthorFilesLines
2009-09-15an attempt to define initialization order within a package.Rob Pike1-4/+22
DELTA=23 (19 added, 1 deleted, 3 changed) OCL=34646 CL=34649
2009-09-15minutiae: pass 1Rob Pike1-108/+163
DELTA=174 (65 added, 10 deleted, 99 changed) OCL=34625 CL=34639
2009-09-14make SimpleStmt include EmptyStmt and the grammar simplifies a bit.Rob Pike1-8/+8
SimpleStmt was always used as an option. fix bug: divide is a right shift DELTA=8 (0 added, 0 deleted, 8 changed) OCL=34612 CL=34614
2009-09-11correct and clarify the rules about integer conversions.Rob Pike1-9/+14
DELTA=15 (6 added, 1 deleted, 8 changed) OCL=34549 CL=34564
2009-09-10gccgo does not yet implement _Rob Pike1-0/+1
OCL=34517 CL=34517
2009-09-10- blank identifierRobert Griesemer1-17/+48
- fixed some links DELTA=51 (32 added, 1 deleted, 18 changed) OCL=34497 CL=34515
2009-09-09update type switch to match spec.Russ Cox1-1/+0
R=ken OCL=34471 CL=34471
2009-09-08cosmetic changes:Robert Griesemer1-27/+25
- 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-03silence hlintRobert Griesemer1-7/+3
R=r DELTA=7 (0 added, 4 deleted, 3 changed) OCL=34310 CL=34312
2009-09-03unsafe is not declared in the outermost scopeRuss Cox1-3/+0
R=gri DELTA=3 (0 added, 3 deleted, 0 changed) OCL=34305 CL=34305
2009-09-02Update restriction on declarations of methods.Stephen Ma1-1/+1
APPROVED=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=34289 CL=34289
2009-09-01updated Implementation differences sectionRobert Griesemer1-1/+4
R=rsc,r DELTA=4 (3 added, 0 deleted, 1 changed) OCL=34204 CL=34204
2009-08-31remove leftover forward-decl syntax and exampleRobert Griesemer1-4/+2
(per feedback from Austin) R=rsc DELTA=7 (0 added, 2 deleted, 5 changed) OCL=34158 CL=34161
2009-08-31- use "package block" nomenclature for exported identifier sectionRobert Griesemer1-18/+19
- same capitalization for "Declarations and scope" section as for other sections DELTA=23 (2 added, 1 deleted, 20 changed) OCL=34131 CL=34156
2009-08-27doc fixes (no lang changes)Robert Griesemer1-30/+30
- added missing predeclared identifiers - html-escaping of a few <<'s and >>'s - added a few links (and removed the ยง's) R=r DELTA=30 (0 added, 0 deleted, 30 changed) OCL=33985 CL=33995
2009-08-27tweaksRobert Griesemer1-3/+3
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=33994 CL=33994
2009-08-27- modified type switches (replacement for CL 32659)Robert Griesemer1-29/+43
- takes into account new scoping rules DELTA=52 (21 added, 7 deleted, 24 changed) OCL=33967 CL=33982
2009-08-24fix duplicated wordRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=33788 CL=33791
2009-08-22allow "comma ok" in initializersRob Pike1-4/+8
DELTA=11 (4 added, 0 deleted, 7 changed) OCL=33698 CL=33712
2009-08-21rewrite type rules for expressions and add shift examplesRob Pike1-20/+42
DELTA=48 (22 added, 0 deleted, 26 changed) OCL=33657 CL=33668
2009-08-21- unifying rules for var decls, short var decls, and assignmentsRobert Griesemer1-32/+21
DELTA=39 (4 added, 15 deleted, 20 changed) OCL=33639 CL=33649
2009-08-20len and cap on chansRuss Cox1-4/+0
R=ken OCL=33599 CL=33599
2009-08-20introduce meaningful section names, so thatRuss Cox1-187/+187
go_spec.html#Return_statements can be used to link to spec sections. passes hlint. renamed final section to simply "Implementation differences" to shorten the name, but otherwise no non-formatting changes R=gri DELTA=230 (10 added, 0 deleted, 220 changed) OCL=33598 CL=33598
2009-08-20clean up multifile package section.Russ Cox1-38/+14
remove ASCII digit comment that isn't true. R=gri DELTA=41 (1 added, 25 deleted, 15 changed) OCL=33594 CL=33596
2009-08-20simplifications.Russ Cox1-34/+21
mark multifile section with TODO only because that is a bigger change. R=gri DELTA=45 (9 added, 22 deleted, 14 changed) OCL=33565 CL=33593
2009-08-19new scope rulesRobert Griesemer1-69/+95
DELTA=137 (50 added, 24 deleted, 63 changed) OCL=33476 CL=33553
2009-08-17There should not be a prohibition against embedding anIan Lance Taylor1-2/+2
interface type in a struct. It is meaningful and the compilers support it. R=gri DELTA=2 (0 added, 0 deleted, 2 changed) OCL=33378 CL=33384
2009-08-14- remove language on forward declsRobert Griesemer1-81/+27
- remove language on (in-)complete types DELTA=95 (8 added, 62 deleted, 25 changed) OCL=33310 CL=33322
2009-08-07- clarified section on return statementsRobert Griesemer1-26/+37
- added some TODOs DELTA=46 (15 added, 4 deleted, 27 changed) OCL=32901 CL=32918
2009-07-31language re: conversion of left operand in shift operationsRobert Griesemer1-0/+5
DELTA=5 (5 added, 0 deleted, 0 changed) OCL=32484 CL=32617
2009-07-16- renamed SimpleVarDecl -> ShortVarDecl, in sync with terminology used in proseRobert Griesemer1-2/+4
- added a few TODOs R=r DELTA=4 (2 added, 0 deleted, 2 changed) OCL=31751 CL=31756
2009-07-10capital_letter was never usedRobert Griesemer1-2/+1
R=rsc DELTA=2 (0 added, 1 deleted, 1 changed) OCL=31472 CL=31477
2009-07-10- mark actual EBNF with pre-formatted class "ebnf" instead of "grammar"Robert Griesemer1-68/+67
- make real productions for Unicode char classes so that they can be parsed - use `` for tokens that contain "'s or \'s so that they can be parsed - added a missing '.' This version of the spec passes through ebnflint (forthcoming) without errors. R=r,rsc DELTA=74 (3 added, 1 deleted, 70 changed) OCL=31464 CL=31466
2009-07-09various spec tuningsRuss Cox1-6/+5
R=gri DELTA=6 (0 added, 1 deleted, 5 changed) OCL=31415 CL=31419
2009-06-25Allow indexing of slice types, but not pointer to slice type.Russ Cox1-3/+17
Allow indexing of string type, but not pointer to string type. Do not allow indexing of pointer to map type. R=r DELTA=18 (14 added, 0 deleted, 4 changed) OCL=30586 CL=30754
2009-06-19fix for conversion ruleRobert Griesemer1-13/+16
R=rsc DELTA=25 (10 added, 7 deleted, 8 changed) OCL=30516 CL=30531
2009-06-18raw strings may span multiple linesRobert Griesemer1-5/+7
R=r DELTA=7 (2 added, 0 deleted, 5 changed) OCL=30492 CL=30494
2009-06-18- removed duplicate definition of StringLitRobert Griesemer1-34/+22
- fixed nonsense sentence in numeric basic type section - hlinted R=r,rsc DELTA=50 (10 added, 22 deleted, 18 changed) OCL=30484 CL=30490
2009-06-17fix for incorrect type switch clause:Robert Griesemer1-3/+7
- nil is not a keyword - type -> Type R=rsc DELTA=10 (4 added, 0 deleted, 6 changed) OCL=30433 CL=30435
2009-06-04string([]int) is now implementedRob Pike1-2/+0
R=rsc DELTA=18 (10 added, 2 deleted, 6 changed) OCL=29909 CL=29909
2009-05-29unary ^ update.Russ Cox1-6/+6
[]int -> string is already in the document. DELTA=7 (1 added, 1 deleted, 5 changed) OCL=29622 CL=29631
2009-05-29Automated g4 rollback of changelist 29478.Rob Pike1-5/+5
*** Reason for rollback *** these semicolons are necessary only because of a bug in 6g *** Original change description *** add missing semicolons in example TBR=gri OCL=29624 CL=29624
2009-05-27add missing semicolons in exampleRob Pike1-5/+5
R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=29475 CL=29478
2009-05-22key:value notation for compositesRobert Griesemer1-27/+87
R=rsc DELTA=106 (69 added, 9 deleted, 28 changed) OCL=29203 CL=29254
2009-05-20new, stricter interface rule:Russ Cox1-2/+2
in x.(T) x cannot be a nil (uninitialized) interface variable. remove TODO per discussion. DELTA=3 (1 added, 1 deleted, 1 changed) OCL=29123 CL=29134
2009-05-20removed TODORobert Griesemer1-2/+0
(new rules on type compatibility cover this already) DELTA=2 (0 added, 2 deleted, 0 changed) OCL=29094 CL=29096
2009-05-20new method set rulesRobert Griesemer1-34/+55
DELTA=63 (27 added, 6 deleted, 30 changed) OCL=29065 CL=29091
2009-05-13New type compatibility rules:Robert Griesemer1-75/+79
- changed type equality to type compatibility, updated rules - string literals have ideal string type - conversion w/ relaxed type compatibilty DELTA=123 (26 added, 22 deleted, 75 changed) OCL=28763 CL=28780
2009-05-12cleanup of unsafe documentationRobert Griesemer1-14/+11
R=r DELTA=19 (4 added, 7 deleted, 8 changed) OCL=28723 CL=28732
2009-05-08update spec to io.WriterRob Pike1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=28528 CL=28531