fixes #3901
This commit is contained in:
parent
4b3f164368
commit
9d0c79ff1e
1 changed files with 6 additions and 0 deletions
|
|
@ -2624,6 +2624,12 @@ when not defined(JS): #and not defined(nimscript):
|
|||
elif x > y: result = 1
|
||||
else: result = 0
|
||||
|
||||
when defined(nimscript):
|
||||
proc writeFile*(filename, content: string) {.tags: [WriteIOEffect], benign.}
|
||||
## Opens a file named `filename` for writing. Then writes the
|
||||
## `content` completely to the file and closes the file afterwards.
|
||||
## Raises an IO exception in case of an error.
|
||||
|
||||
when not defined(nimscript) and hostOS != "standalone":
|
||||
when defined(windows):
|
||||
# work-around C's sucking abstraction:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue