<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=312003100-10012009><FONT face=Arial
color=#0000ff size=2>Nope, no difference. But I support your idea of requiring a
"main" subroutine anyway. Tweaking v1 scripts has so far turned out to be no big
deal.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=312003100-10012009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=312003100-10012009><FONT face=Arial
color=#0000ff size=2>Gary</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> apbeta-bounces@lists.astroplanner.net
[mailto:apbeta-bounces@lists.astroplanner.net] <B>On Behalf Of </B>Paul
Rodman<BR><B>Sent:</B> Friday, January 09, 2009 4:21 PM<BR><B>To:</B>
AstroPlanner Beta Testers<BR><B>Subject:</B> Re: [APBeta] Parameter
defaults<BR></FONT><BR></DIV>
<DIV></DIV><BR>
<DIV>
<DIV>On Jan 9, 2009, at 04:09 PM, Gary A. Ferguson wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>I keep having to
change lines like:</FONT></SPAN></DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>c=new
Canvas(800,1000,"Magnification")</FONT></SPAN></DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>into lines
like:</FONT></SPAN></DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>c=new
Canvas(800,1000,nil,"Magnification",true)</FONT></SPAN></DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>which is fine,
things change, it's a new version after all. But why can't I
use:</FONT></SPAN></DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>c=new
Canvas(800,1000,,"Magnification") ?</FONT></SPAN></DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=625160200-10012009><FONT face=Arial size=2>The 2 new fields
in the constructor appear to be defaulted according to the framework, so it
seems like I shouldn't have to provide explicit values. Is this just something
about the particular version of BASIC that I don't
understand?</FONT></SPAN></DIV>
<DIV></DIV></DIV></BLOCKQUOTE></DIV><BR>
<DIV>I dunno. Well, perhaps I do - it's just that I've never tried this:</DIV>
<DIV><BR></DIV>
<DIV>I was recently told by the vendor that if you have your main program in a
script not encapsulated in a method, then a lot of the "syntactic sugar" one
would expect is not available to you. I suspect embedded default parameters
might be included in this.</DIV>
<DIV><BR></DIV>
<DIV>For this reason (and others) I am contemplating forcing the script writer
to encapsulate their main program code in a "main" subroutine, which I would
then call. Of course, this would mean that all V1 scripts would need tweaking,
but then that's probably the case anyway.</DIV>
<DIV><BR></DIV>
<DIV>Try putting your main program in a sub(routine) and calling it:</DIV>
<DIV><BR></DIV>
<DIV> sub main()</DIV>
<DIV> ...</DIV>
<DIV> program statements</DIV>
<DIV> ...</DIV>
<DIV> end sub</DIV>
<DIV><BR></DIV>
<DIV> main() // Call main</DIV>
<DIV><BR></DIV>
<DIV>and see if that resolves the issue. Let me know.</DIV>
<DIV><BR></DIV>
<DIV>Paul R.</DIV>
<DIV><BR></DIV></BODY></HTML>