Procedure library.

This is a discussion on Procedure library. within the logo forums in Programming Languages category; Dear all, Suppose you are writing a few short programs that use, among others, an identical set of procedures. Is it possible with Logo to store these procedures in a library and import them whenever necessary without retyping or cut and paste them? Many thanks, Gian...

Go Back   Application Development Forum > Programming Languages > logo

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-29-2008, 02:08 PM
Gianluca7281@aol.com
Guest
 
Default Procedure library.

Dear all,

Suppose you are writing a few short programs that use, among others,
an identical set of procedures.
Is it possible with Logo to store these procedures in a library and
import them whenever necessary without retyping or cut and paste them?

Many thanks,

Gian
Reply With Quote
  #2  
Old 06-29-2008, 03:37 PM
Brian Harvey
Guest
 
Default Re: Procedure library.

Gianluca7281@aol.com writes:
>Suppose you are writing a few short programs that use, among others,
>an identical set of procedures.
>Is it possible with Logo to store these procedures in a library and
>import them whenever necessary without retyping or cut and paste them?


Yes. But the exact details depend on what version of Logo you're using.
In many versions, you can enter the procedures, then use the SAVE command
with a filename as input to save them:
SAVE "MYFILE.LG
Then you can get them back in your projects with the LOAD command:
LOAD "MYFILE.LG
Reply With Quote
  #3  
Old 07-02-2008, 02:05 PM
jftsang
Guest
 
Default Re: Procedure library.

On Jun 29, 8:37*pm, b...@cs.berkeley.edu (Brian Harvey) wrote:
> Gianluca7...@aol.com writes:
> >Suppose you are writing a few short programs that use, among others,
> >an identical set of procedures.
> >Is it possible with Logo to store these procedures in a library and
> >import them whenever necessary without retyping or cut and paste them?

>
> Yes. *But the exact details depend on what version of Logo you're using.
> In many versions, you can enter the procedures, then use the SAVE command
> with a filename as input to save them:
> * * * * SAVE "MYFILE.LG
> Then you can get them back in your projects with the LOAD command:
> * * * * LOAD "MYFILE.LG


It would save you time if you created a file that loads all of the
programs you have made, and then just load that file when needed.

In FMSLogo, you can save a file with a name such as procedure.lgo.
When FMSLogo does not have procedure defined, it will look in the
current directory for a lgo file which has that procedure's name.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 01:33 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.