From 03b874818315e7dc9fb2ccf26716a0fb65242a57 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Thu, 19 Feb 2026 10:20:11 +0200 Subject: Rename func keyword to fun Replace the `func` language keyword with `fun` throughout: update the scanner's string-to-token mapping, all .fy example scripts, and all documentation files (.txt, .pod, .tex, .man, .html). Co-Authored-By: Claude Sonnet 4.6 --- docs/pod/fype.html | 8 ++++---- docs/pod/fype.man | 6 +++--- docs/pod/fype.pod | 8 ++++---- docs/pod/fype.tex | 8 ++++---- docs/pod/fype.txt | 8 ++++---- 5 files changed, 19 insertions(+), 19 deletions(-) (limited to 'docs') diff --git a/docs/pod/fype.html b/docs/pod/fype.html index e6f14b2..dab05c2 100644 --- a/docs/pod/fype.html +++ b/docs/pod/fype.html @@ -545,9 +545,9 @@ keyword in order to check if a procedure has been defined or not.

Functions

-

A function should be defined with the func keyword and deleted with the undef keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above).

+

A function should be defined with the fun keyword and deleted with the undef keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above).

-        func foo {
+        fun foo {
                 say 1 + a * 3 + b;
                 my c = 6;
         }
@@ -561,8 +561,8 @@ keyword in order to check if a procedure has been defined or not.

Nested functions

Nested functions work the same way the nested procedures work, with the exception that nested functions will not be available any more after the function has been left!

-        func foo {
-                func bar {
+        fun foo {
+                fun bar {
                         say "Hello i am nested";
                 }
diff --git a/docs/pod/fype.man b/docs/pod/fype.man
index 886cc70..81c73f2 100644
--- a/docs/pod/fype.man
+++ b/docs/pod/fype.man
@@ -533,7 +533,7 @@ keyword in order to check if a procedure has been defined or not.
 A function should be defined with the \fBfunc\fR keyword and deleted with the \fBundef\fR keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above).
 .PP
 .Vb 4
-\&        func foo {
+\&        fun foo {
 \&                say 1 + a * 3 + b;
 \&                my c = 6;
 \&        }
@@ -548,8 +548,8 @@ A function should be defined with the \fBfunc\fR keyword and deleted with the \f
 Nested functions work the same way the nested procedures work, with the exception that nested functions will not be available any more after the function has been left!
 .PP
 .Vb 4
-\&        func foo {
-\&                func bar {
+\&        fun foo {
+\&                fun bar {
 \&                        say "Hello i am nested";
 \&                }
 \&
diff --git a/docs/pod/fype.pod b/docs/pod/fype.pod
index 9282136..98c58ba 100644
--- a/docs/pod/fype.pod
+++ b/docs/pod/fype.pod
@@ -454,9 +454,9 @@ keyword in order to check if a procedure has been defined or not.
 
 =head2 Functions
 
-A function should be defined with the B keyword and deleted with the B keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above). 
+A function should be defined with the B keyword and deleted with the B keyword. Function not yet return values (will be changed in future versions) and supports not yet parameter passing (will be changed in future versions). It's using local (lexical scoped) variables. If a certain variable does not exist It's using already defined variables (e.g. one scope above). 
 
-	func foo {
+	fun foo {
 		say 1 + a * 3 + b;
 		my c = 6;
 	}
@@ -470,8 +470,8 @@ A function should be defined with the B keyword and deleted with the B