[Bug 608069] Tango standard library for D language of d1 specification
bugzilla at redhat.com
bugzilla at redhat.com
Sat Jul 24 20:35:32 UTC 2010
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=608069
--- Comment #18 from MERCIER Jonathan <bioinfornatics at gmail.com> 2010-07-24 16:35:31 EDT ---
shorter example:
________________________________________
module test;
import tango.io.Stdout: Stdout, Stderr;
void main(){
uint a = 5;
uint b = 0;
//printf same in C
Stdout.formatln("hello, world");
//Cout same in C++
Stdout.formatln("try divide '{}' by '{}'", a, b);
//test
if (b == 0){
Stderr.formatln("Divide by zero!!");
}
else{
Stdout.formatln("Result: '{}'", a/b);
Stdout.formatln("Result: '{}'/'{}'='{}'", a, b, a/b);
}
}
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the package-review
mailing list