1. 05 Nov, 2008 15 commits
  2. 04 Nov, 2008 10 commits
  3. 03 Nov, 2008 12 commits
  4. 02 Nov, 2008 3 commits
    • Rob Pike's avatar
      printf as we know and love it. · 2d4f7ba0
      Rob Pike authored
      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
      2d4f7ba0
    • Rob Pike's avatar
      add creator for missing types, to avoid crashes when · 178e37e7
      Rob Pike authored
      signature is absent from object file.
      
      R=rsc
      DELTA=18  (18 added, 0 deleted, 0 changed)
      OCL=18315
      CL=18323
      178e37e7
    • Ken Thompson's avatar
      >>= and <<= shift bug · d2472eb8
      Ken Thompson authored
      R=r
      OCL=18322
      CL=18322
      d2472eb8