Currently Being Moderated

Try 6: Page 7

VERSION 1

Created on: Mar 26, 2008 9:26 AM by Curl Education - Last Modified:  Jul 3, 2008 3:35 PM by Curl Education

!../../wiki/easy-ide-book/common/images/prev_page.gif! !../../wiki/easy-ide-book/common/images/toc.gif! !../../wiki/easy-ide-book/common/images/next_page.gif!

 

 

 

TRY 6 Summary

 

 

Convenient functions for creating a layout

 

 

  • <font color="purple">TabContainer</font>

  • <font color="purple">TabAccordion</font>

 

 

Curl file extensions

 

 

Table 6-2:  Main Curl file extensions

Extension

Explanation

.curl

Curl applet that is executed by a browser.

.dcurl

Curl applet that can be executed independently, without the use of a browser.

.scurl

File that defines a package or the code included in a package

.mcurl

Manifest file that manages resource location information

.pcurl

Preprocessed Curl package

 

 

  • Leftover space in a layout can be taken up with <font color="purple">Fill</font>

  • Objects that can stretch or contract are created using the <font color="purple">make-elastic</font> expression for their height and width

 

 

 

           

-


           

<font color="#006968">Procedure definition</font>

           

{define-proc {procedure_name [argument_1, argument_2, …]}: return_value
}

</font>            

-


           

 

 

Arguments

  1. Positional arguments… must supply a value for each argument. The number, data type, and order of positional arguments in a function call must match those in the function definition

  2. Keyword arguments…  have default values. If a caller does not specify a value for a keyword argument, the function uses the default value

  3. Rest arguments… allows functions to accept an unlimited number of arguments. A rest argument is not individually named in the function definition. Instead, three periods (...) at the end of the list of arguments indicate that a function accepts rest arguments.

 

 

!../../wiki/easy-ide-book/common/images/next_page.gif!

Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...