aboutsummaryrefslogtreecommitdiff
path: root/std/default/format.pk
diff options
context:
space:
mode:
Diffstat (limited to 'std/default/format.pk')
-rw-r--r--std/default/format.pk3
1 files changed, 2 insertions, 1 deletions
diff --git a/std/default/format.pk b/std/default/format.pk
index c7d7ab8..ec573ef 100644
--- a/std/default/format.pk
+++ b/std/default/format.pk
@@ -13,10 +13,11 @@ pub type Debug = interface
dbg(Self): str
## Prints all of its arguments to the command line.
-pub func print(params: varargs[Display]) =
+pub proc print(params: varargs[Display]) =
stdout.write(params.map(x => x.str).join(" "), "\n")
## Prints all of its arguments to the command line, in Debug form.
+## Note: this function is special! does not count as a side effect
pub func dbg(params: varargs[Debug]) =
stdout.write(params.map(x => x.dbg).join(" "), "\n")