Søren Hauberg wrote:
> tir, 06 01 2009 kl. 13:06 -0500, skrev David:
>
>> I'll try to post some code by the end of the week. At the moment, I've
>> got all my code in a single file. Is it a standard or convention to
>> have one source file per function? If so, where should global
>> variables be defined? Or is the use of global variables frowned upon?
>>
>
> As to global variables, they are usually frowned upon. Remember that
> these are cleared when the user does a 'clear all' (at least, I think
> they are, I'm not sure). Anyway, in the end it is the person who writes
> the code, who gets to decide.
Global and persistent variables are cleared with clear all.
Have a good day,
Bill
------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev