Dear Gaby,

judging from the comment alone (I did not yet compile this revision):

am I right that both snippets below will produce an error in SPAD?

(1)
        for i in 1..5 repeat 
                j: Integer := i^2
                output(i::OutputForm)$OutputPackage

        output(i::OutputForm)$OutputPackage

(the scope of the iterator variable i is restricted to the loop)

(2)
        for i in 1..5 repeat 
                j: Integer := i^2
                output(i::OutputForm)$OutputPackage

        output(j::OutputForm)$OutputPackage

(the scope of the variable j is restricted to the loop)

If so: I really like that (1) produces an error, but I really dislike that (2)
does, too...

Any chance of changing this?

Martin


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
open-axiom-devel mailing list
open-axiom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open-axiom-devel

Reply via email to