Print an object on the standard output (stdout) and add a newline.

Property definitions

core :: file $ Sys :: print
# Print an `object` on the standard output (`stdout`) and add a newline.
fun print(object: Object)
do
	sys.stdout.write(object.to_s)
	sys.stdout.write("\n")
end
lib/core/file.nit:1695,1--1700,3

pthreads :: pthreads $ Sys :: print
# Print `object` and '\n' with the same system call
redef fun print(object)
do
	sys.stdout.write(object.to_s+"\n")
end
lib/pthreads/pthreads.nit:484,1--488,3

ios :: ios $ Sys :: print
redef fun print(msg) do msg.to_s.nslog
lib/ios/ios.nit:23,1--38

android :: log $ Sys :: print
# Use Android logs to print
redef fun print(object)
do
	log_write(priority_info, app.log_prefix.to_cstring, object.to_s.to_cstring)
end
lib/android/log.nit:26,1--30,3

nitcorn :: log $ Sys :: print
redef fun print(object) do
	var timestamp = new Tm.gmtime
	super "{timestamp.year}/{timestamp.mon}/{timestamp.mday} "+
	"{timestamp.hour}:{timestamp.min}:{timestamp.sec}: {object}"
end
lib/nitcorn/log.nit:57,1--61,3

android :: http_request $ Sys :: print
# Force linearization of print
#
# TODO prioritize `android::log`
redef fun print(object) do super
lib/android/http_request.nit:131,1--134,32