Mintoris Forum

Author Topic: Nestd Functions  (Read 1609 times)

zakerytclarke

  • Sr. Member
  • ****
  • Posts: 195
Nestd Functions
« on: Oct 12, 2017, 04:38 PM »
I think it would be really cool if functions had the ability to be nested. It would help prevent duplicate variable naming and would make it easier for people in the Mintoris community to package their code into libraries.
Example Syntax:

foo()
foo.bar()
rem calling the function outside foo
sub foo()
bar()
rem calling the function inside foo

sub bar()
print "The power of nested functions‼"
end sub

end sub

This would work similarly to classes and methods in Java.

Marietoupt

  • Full Member
  • ***
  • Posts: 31
Nestd Functions
« Reply #1 on: Oct 31, 2019, 05:31 PM »
fantasy))))

Marietoupt

  • Full Member
  • ***
  • Posts: 31
Nestd Functions
« Reply #2 on: Nov 01, 2019, 09:05 AM »
is simply excellent phrase :)