Christopher Dicely wrote:
The problem seems to be that getGuiArgs doesn't return in the same format that getArgs does with command line arguments; getArgs seems to work the way the docs suggest all three of getArgs, getCmdArgs, and getGuiArgs should.

I must confess I did not test my version with getGuiArgs. I just believed what the documentation says. Obviously getGuiArgs is not correct w.r.t. the documentation! This one works:

functor
import
   Application System
define
   fun {GetGuiArgsPlain} {Application.getGuiArgs plain}.1 end
   for Arg in {Reverse {GetGuiArgsPlain}} do
      {System.printInfo {Reverse Arg}#" "}
   end
   {System.showInfo ""}
   {Application.exit 0}
end


Anyway thanks for reporting this problem. I just submitted a bug report to not forget it. This should be fixed soon.

Cheers,
raph

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to