From: Bryan English Date: Sun, 12 Apr 2026 03:54:55 +0000 (-0400) Subject: clarity on externs X-Git-Url: https://rethought.computer/gitweb//gitweb//git?a=commitdiff_plain;h=HEAD;p=sorel-lang.git clarity on externs --- diff --git a/docs/language_overview.md b/docs/language_overview.md index 0a993a6..1e3475a 100644 --- a/docs/language_overview.md +++ b/docs/language_overview.md @@ -62,7 +62,7 @@ This is useful for writing tests. Sorel supports calling other native code when it's statically linked into the same binary. Declare an externally-linked function using `extern function_name`. Then, you can call it like any other Sorel word. -To pass arguments, simply put them on the stack in the order that they appear in the function signature. +Externally-linked functions cannot (currently) take arguments, but the data stack could be manipulated. Be careful with types. The return value is added to the stack once the function returns.