Using Functions as "Function" Objects
This chapter provides introductions and tutorial examples on functions as objects. Topics include the built-in object type 'Function'; creating functions using the 'Function()' constructor; function instance and inherited properties and methods; 'function' statement and operator.
These sections are omitted from this Web preview version. To view the full content,
see information on how to obtain the full version this book.
What is Crypt::CFB
Installing Crypt::CFB 0.02 with ActivePerl
Crypt::CFB with Default IV
Crypt::CFB Not Requiring Padding
Crypt::CFB Operation Simulation
- You can create a new function by calling the Function constructor:
new Function("arg_1", "arg_2", ..., "function_body").
- A Function object has built-in properties and methods: length, apply(),
call(), and toString().
- You can add additional properties and methods to Function object instances.
- A "function" statement is actually an expression of "function" operation,
which returns a reference to new Function object.
Table of Contents
About This Book
Data Types, Variables and Expressions
Flow Control Statements
Creating, Accessing, and Manipulating Arrays
Defining and Calling Functions
Server-Side and Client-Side Web Scripting
Introduction to Objects
Defining Your Own Object Types
Inheritance of Properties and Methods through the Prototype Object Chain
►Using Functions as "Function" Objects
Introduction to Built-in Object Types
W3C's Document Object Model (DOM) Specifications
Full Version in PDF/EPUB