Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Reference : Procedures : defproc

Syntax

defproc has exactly the same syntax as proc. The only different is that defproc keeps track of whether each character in the body is code or data; proc just treats the entire body as code.

Example

#(defproc,a-defproc,#(tint.data,(#(+,%arg1,1)))(#(+,%arg1,1)),,,%arg1)

#(a-defproc,5)

                     #(+,5,1)6
##(a-defproc,5)

                        #(+,5,1)#(+,5,1)
##(a-defproc,abc)

                            #(+,abc,1)#(+,abc,1)
#(proc,a-proc,#(tint.data,(#(+,%arg1,1)))(#(+,%arg1,1)),,,%arg1)

#(a-proc,5)
66
##(a-proc,5)

                 #(+,5,1)#(+,5,1)