In the following program, I'm trying to instantiate an output variable in a case statement. I get output for {Browse start}, but I don't get any other output. Any idea why or where it is hanging?

Hi,


        local Test
           proc {P A B C}
              {Browse start}
              case A#B#C of
          nil#B#B then {Browse first}

here, as Test (aka C) is unbound. You can not do such things with "case". Read the tutorial carefully.

Cheers,
Filip

              [] A#nil#A then {Browse second}
              [] _#_#5 then {Browse neither}
              end
              {Browse after}
           end
        in
           {P nil 3 Test}
           {Browse Test}
        end
_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to