summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-11-056g interface changes:Russ Cox7-366/+236
* allow conversion between nil interface and any type. * mark signatures as DUPOK so that multiple .6 can contain sigt.*[]byte and only one gets used. R=ken OCL=18538 CL=18542
2008-11-05Don't use a named pointer type as a receiver type. TheIan Lance Taylor1-2/+2
current spec forbids it: The type specified by the type name is called ``receiver base type''. The receiver base type must be a type declared in the current file, and it must not be a pointer type. R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=18527 CL=18541
2008-11-05minor tweak to still non-portable alignment calculationRob Pike1-3/+3
R=rsc DELTA=4 (1 added, 1 deleted, 2 changed) OCL=18528 CL=18533
2008-11-05make sizes and offsets int, not uint64Rob Pike4-43/+45
add Value.Interface, to extract an empty interface that can be converted to a regular Go value of the appropriate type, if known. R=rsc DELTA=49 (2 added, 0 deleted, 47 changed) OCL=18526 CL=18526
2008-11-05fix bugs parsing functions in reflect library.Rob Pike2-13/+31
parsed interfaces wrong. could not handle a function with a single type as a return value. R=rsc DELTA=34 (20 added, 2 deleted, 12 changed) OCL=18511 CL=18520
2008-11-04type strings through the reflection library.Rob Pike3-62/+141
R=rsc DELTA=187 (107 added, 28 deleted, 52 changed) OCL=18510 CL=18510
2008-11-04- added (incomplete) section on parameter passingRobert Griesemer1-1/+70
- decribe passing of "..." parameters for a start R=r DELTA=70 (69 added, 0 deleted, 1 changed) OCL=18503 CL=18503
2008-11-04update golden.outRob Pike2-5/+0
R=rsc OCL=18482 CL=18484
2008-11-04get rid of bignum leftoversRobert Griesemer4-808/+0
R=r OCL=18475 CL=18475
2008-11-04prepare for recursive printfsRob Pike1-22/+25
R=rsc DELTA=31 (9 added, 6 deleted, 16 changed) OCL=18470 CL=18472
2008-11-04install bignum as libraryRobert Griesemer3-0/+3
R=r DELTA=3501 (1752 added, 1749 deleted, 0 changed) OCL=18460 CL=18471
2008-11-04- better support for string conversionsRobert Griesemer2-73/+107
- removed trailing tabs R=r OCL=18458 CL=18458
2008-11-04move invalid method uses to new testRuss Cox3-11/+18
R=iant DELTA=24 (13 added, 10 deleted, 1 changed) OCL=18424 CL=18439
2008-11-04- completed integer support (some logical functions missing)Robert Griesemer2-468/+991
- completed rational support - better documentation - more tests - cleanups R=r OCL=18438 CL=18438
2008-11-03runtime support for interface ok,Russ Cox3-8/+75
whatever the final syntax ends up being. R=ken OCL=18414 CL=18414
2008-11-036l: generate gotypesigs on demand.Russ Cox7-18/+158
add sys.unreflect, which uses gotypesigs. R=r DELTA=170 (152 added, 12 deleted, 6 changed) OCL=18396 CL=18404
2008-11-03remove unnecessary 6g workaroundRuss Cox1-51/+51
R=r DELTA=51 (0 added, 0 deleted, 51 changed) OCL=18399 CL=18402
2008-11-03move DotDotDot into next case - hit submit too fast last time.Rob Pike1-4/+3
R=rsc DELTA=5 (1 added, 2 deleted, 2 changed) OCL=18395 CL=18398
2008-11-03fixed testsRuss Cox2-0/+0
R=r DELTA=124 (62 added, 62 deleted, 0 changed) OCL=18389 CL=18394
2008-11-03support ... as a special type in the reflection library.Rob Pike3-0/+17
R=rsc DELTA=17 (17 added, 0 deleted, 0 changed) OCL=18386 CL=18393
2008-11-03update names after 6g changeRuss Cox1-5/+5
TBR=r OCL=18381 CL=18383
2008-11-03rename various magic names.Russ Cox6-59/+74
sigi and sigt: sys·sigi_inter -> sigi·inter sys·sigt_int -> sigt·int Package·sigt_Type -> sigt·Package.Type local type T in file x.go T_x -> T·x second one T_x_1 -> T·x·1 method names M on T T_M -> T·M correctly handle local embedded types init functions are the only place left that use underscores R=ken OCL=18377 CL=18377
2008-11-03treat ... as agreedKen Thompson1-10/+27
only unencapsulated if passing one ddd argument to one ddd parameter. R=r OCL=18376 CL=18376
2008-11-03in traceback, handle the case where we've called through a nil function pointerRob Pike1-0/+7
R=rsc DELTA=7 (7 added, 0 deleted, 0 changed) OCL=18372 CL=18372
2008-11-03unsigned divide by fn()Ken Thompson1-10/+10
R=r OCL=18351 CL=18351
2008-11-03silence gcc warningsRuss Cox1-3/+2
R=ken OCL=18348 CL=18348
2008-11-03ascii to unsigned integerRob Pike1-19/+37
R=rsc DELTA=60 (35 added, 17 deleted, 8 changed) OCL=18339 CL=18343
2008-11-03- keeping track of to-do itemsRobert Griesemer1-5/+12
R=r DELTA=15 (10 added, 3 deleted, 2 changed) OCL=18334 CL=18336
2008-11-03- changed general div/mod implementation to a faster algorithmRobert Griesemer2-234/+367
(operates on 30bit values at a time instead of 20bit values) - refactored and cleaned up lots of code - more tests - close to check-in as complete library R=r OCL=18326 CL=18326
2008-11-02printf as we know and love it.Rob Pike1-21/+25
Plus print[ln] with the ability to print struct values. Note for language mavens: if a "..." function passes its argument to another "..." function, the argument is not wrapped again. This allows printf to call fprintf without extra manipulation. It's good but needs to go in the spec. This code works: /// package main import fmt "fmt" import os "os" type T struct { s string; a, b int } func main() { P := fmt.Printer(); P.printf("%s = %d with float value %.4f\n", "hi there", 7, 123.456); P.println("hi there", 7, 123.456); P.fprintf(os.Stdout, "%s = %d with float value %.4f\n", "hi there", 7, 123.456); P.println(T{"x", 7, 234}, "end of struct", 8, 9); } R=rsc DELTA=28 (7 added, 3 deleted, 18 changed) OCL=18321 CL=18324
2008-11-02add creator for missing types, to avoid crashes whenRob Pike2-0/+18
signature is absent from object file. R=rsc DELTA=18 (18 added, 0 deleted, 0 changed) OCL=18315 CL=18323
2008-11-01>>= and <<= shift bugKen Thompson1-3/+3
R=r OCL=18322 CL=18322
2008-11-01DOTDOTDOT import/exportKen Thompson2-0/+5
R=r OCL=18319 CL=18319
2008-11-01a couple of bugs in print.Rob Pike1-1/+11
1) bool wasn't handled (added '%t' for 'truth'). 2) float64 had a typo. TBR=rsc DELTA=11 (10 added, 0 deleted, 1 changed) OCL=18314 CL=18318
2008-11-01DOTDOTDOTKen Thompson5-49/+159
R=r OCL=18317 CL=18317
2008-11-01sprint changed to snprintKen Thompson1-30/+30
R=r OCL=18316 CL=18316
2008-10-31- gcd, exponentiation, population countRobert Griesemer2-8/+121
- more rational numbers stuff - more tests R=r OCL=18295 CL=18295
2008-10-31Add support for the basic type "bool".Ian Lance Taylor6-0/+51
R=r DELTA=51 (51 added, 0 deleted, 0 changed) OCL=18283 CL=18290
2008-10-31\x00 for NUL in type string.Rob Pike3-5/+14
R=rsc DELTA=14 (9 added, 0 deleted, 5 changed) OCL=18281 CL=18281
2008-10-31make %Z handle embedded NULs; remove fixed-size bufferRuss Cox1-40/+27
R=r DELTA=44 (2 added, 15 deleted, 27 changed) OCL=18270 CL=18273
2008-10-31Recognize gccgo error message:Ian Lance Taylor1-1/+1
interface1.go:29:6: error: incompatible type in initialization (missing method Next) R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=18183 CL=18271
2008-10-31- handle field tags in pretty printerRobert Griesemer5-19/+30
R=r OCL=18264 CL=18264
2008-10-31- fixed another test (arithmetic vs. logic shift bug)Robert Griesemer2-13/+30
R=r OCL=18235 CL=18237
2008-10-31add mention of tag string to grammar commentRob Pike1-1/+3
R=rsc DELTA=3 (2 added, 0 deleted, 1 changed) OCL=18232 CL=18232
2008-10-30- div and mod (arbitrary precision)Robert Griesemer2-104/+278
- more tests - some global renames R=r OCL=18219 CL=18219
2008-10-30reflection support for tag stringsRob Pike4-9/+86
R=rsc DELTA=86 (77 added, 0 deleted, 9 changed) OCL=18201 CL=18203
2008-10-30escape \ in %ZRuss Cox1-0/+1
R=ken OCL=18202 CL=18202
2008-10-30change from $$ to \n$$ for .6 meta section delimiterRuss Cox3-8/+13
R=r DELTA=13 (5 added, 0 deleted, 8 changed) OCL=18190 CL=18192
2008-10-30- language for struct field tagsRobert Griesemer1-2/+17
DELTA=17 (15 added, 0 deleted, 2 changed) OCL=18177 CL=18184
2008-10-30make %Z escape "Russ Cox1-0/+4
R=ken OCL=18180 CL=18180