edit

From DavinciWiki
Jump to: navigation, search


Description

Edit the code of a User Defined Function

Arguments and Return Values

Arguments: The name of the script

Return Value: None. Opens a file editor.

Usage

Syntax: edit(function)

A text editor will be opened to allow the user to alter the code of the specified user-defined function. Upon saving the function will operate according to the alterations.

Examples

dv> define a_function() {
 1> printf("this is a script\n")
 1> }
Loaded function a_function

dv> a_function()
this is a script

dv> edit(a_function)

In text editor the statement in changed to "an altered":

define a_function() {
 printf("this is an altered script\n")
}
~
~
~
~...

After saving and returning to the davinci session:

dv> a_function()
this is an altered script

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left


Recent Core Changes

Modified On: 03-27-2006

Personal tools