This commit is contained in:
Ingy döt Net 2013-10-27 22:24:23 +00:00
parent 6f050a029e
commit 776bba907c
3887 changed files with 59894 additions and 7280 deletions

View file

@ -0,0 +1 @@
console.error("Goodbye, World!")//only works if console object exists

View file

@ -0,0 +1 @@
throw new Error("Goodbye, World!")//Should work in any browser

View file

@ -0,0 +1,7 @@
:- object(error_message).
% the initialization/1 directive argument is automatically executed
% when the object is compiled and loaded into memory:
:- initialization(write(user_error, 'Goodbye, World!\n')).
:- end_object.

View file

@ -0,0 +1 @@
fprintf(2,'Goodbye, World!')

View file

@ -0,0 +1 @@
error 'Goodbye, World!'

View file

@ -0,0 +1 @@
System.Console.Error.WriteLine("Goodbye, World!");

View file

@ -1 +1 @@
System.err.println("Goodbye, World!")
Console.err.println("Goodbye, World!")

View file

@ -1 +1 @@
Console.err.println("Goodbye, World!")
System.err.println("Goodbye, World!")

View file

@ -0,0 +1 @@
Console.err.println("Goodbye, World!")

View file

@ -0,0 +1 @@
Console.withOut(Console.err) { println("This goes to default _err_") }

View file

@ -0,0 +1,4 @@
println ("Out not deviated")
Console.setOut(Console.err)
println ("Out deviated")
Console.setOut(Console.out) // Reset to normal