View previous topic :: View next topic |
Author |
Message |
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Sat May 06, 2006 6:37 pm Post subject: Print problems |
|
|
This program:
Code: |
import mango.io.Stdout;
void main()
{
ubyte a = 1;
Stdout.print("?d", a) (CR);
byte b = 2;
Stdout.print("?d", b) (CR);
ushort c = 3;
Stdout.print("?d", c) (CR);
short d = 4;
Stdout.print("?d", d) (CR);
uint e = 5;
Stdout.print("?d", e) (CR);
int f = 6;
Stdout.print("?d", f) (CR);
ulong g = 7;
Stdout.print("?d", g) (CR);
long h = 8;
Stdout.print("?d", h) (CR);
float i = 9;
Stdout.print("?f", i) (CR);
double j = 10;
Stdout.print("?f", j) (CR);
ireal k = 11i;
Stdout.print("?d", k) (CR);
creal l = 12 + 13i;
Stdout.print("?d", l) (CR);
Stdout.print("?s", k) (CR);
Stdout.print("?s", l) (CR);
}
|
Outputs:
Code: |
0
0
0
0
5
6
7
8
09.000000
10.000000
0
0
false
false
|
The last two (k and l), I'm not even sure how they should be formatted, but with ?s why are they shown as false? |
|
Back to top |
|
|
kris
Joined: 27 Mar 2004 Posts: 1494 Location: South Pacific
|
Posted: Tue May 09, 2006 8:52 pm Post subject: |
|
|
there was a bug in the packaged release of 2.0 -- later fixed in the trunk. However, ireal and creal will not print directly (there's no writer signature for that type at this time), and the 9.0 value has that odd 0 prefix. I'll fix that right now
Thanks; |
|
Back to top |
|
|
Carlos
Joined: 19 Mar 2004 Posts: 396 Location: Canyon, TX
|
Posted: Tue May 09, 2006 9:05 pm Post subject: |
|
|
Ok, thanks. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|