? Only one type of function (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
Space-Restriction Challenge QSP Phase Ends on March 26!

Only one type of function

  • #1 ✎ 1696 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself There are 3 types of functions in SB: 1: FUNCTION [arguments] 2: FUNCTION [arguments] OUT [returns] 3: return = FUNCTION( [arguments] ) But actually, 2 and 3 are the same! (this is well known) X=EXAMPLE(7) can be written as EXAMPLE 7 OUT X Ok, so there are two types: 1: FUNCTION [arguments] 2: FUNCTION [arguments] OUT [returns] But wait! EXAMPLE 7 can be written as EXAMPLE 7 OUT! so there's only one type cool Posted