AnyLang Programming Language Comparison/Appendix:PLEAC Crossref:Subroutines
Subroutines
editIntroduction
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Accessing Subroutine Arguments
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Making Variables Private to a Function
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Creating Persistent Private Variables
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Determining Current Function Name
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Passing Arrays and Hashes by Reference
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Detecting Return Context
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Passing by Named Parameter
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Skipping Selected Return Values
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Returning More Than One Array or Hash
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Returning Failure
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Prototyping Functions
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Handling Exceptions
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Saving Global Values
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Redefining a Function
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Trapping Undefined Function Calls with AUTOLOAD
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Nesting Subroutines
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |
Program: Sorting Your Mail
editada | c++ | commonlisp | cposix | erlang | factor | forth |
groovy | guile | haskell | haskell-on-steroids | java | masd | merd |
nasm | ocaml | perl | php | pike | pliant | python |
R | rexx | ruby | smalltalk | tcl |