From: Jean Privat Date: Mon, 6 Apr 2015 15:10:17 +0000 (+0700) Subject: lib/file: once some global constants X-Git-Tag: v0.7.4~32^2~4 X-Git-Url: http://nitlanguage.org lib/file: once some global constants Signed-off-by: Jean Privat --- diff --git a/lib/standard/file.nit b/lib/standard/file.nit index 42eca14..bb87a6f 100644 --- a/lib/standard/file.nit +++ b/lib/standard/file.nit @@ -252,14 +252,14 @@ redef class Int end # Constant for read-only file streams -private fun read_only: NativeString do return "r".to_cstring +private fun read_only: NativeString do return once "r".to_cstring # Constant for write-only file streams # # If a stream is opened on a file with this method, # it will wipe the previous file if any. # Else, it will create the file. -private fun wipe_write: NativeString do return "w".to_cstring +private fun wipe_write: NativeString do return once "w".to_cstring ###############################################################################