azber / liteide

Automatically exported from code.google.com/p/liteide
0 stars 0 forks source link

"fmt.Print" and builtin function "print" output is out of correct order when used in same program #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile/run the following

package main

import "fmt"

func main() {

    println(1,2,3)

    fmt.Println(4,5,6)

    println(7,8,9)
}

2. Observe the output in LiteIDE standard output window ie reads 4 5 6 \n 1 2 3 
\n 7 8 9 \n
3. Observe the output in standard OS console ie cmd.exe

What is the expected output? What do you see instead?
Expected output is 1 2 3 \n 4 5 6 \n 7 8 9 \n .. this is seen when running 
external console. When output is through IDE the fmt.Println text is printed 
first.

What version of the product are you using? On what operating system?
X10(1.5625) Windows XP SP3 x86 32 bit

Please provide any additional information below.

Original issue reported on code.google.com by mdd...@gmail.com on 28 Nov 2011 at 1:32

GoogleCodeExporter commented 9 years ago
Note: print() and println() output to os.Stderr

Original comment by markfarr...@gmail.com on 25 Jan 2015 at 9:56