I spent most of last night struggling to figure out how to do the equivalent of XMLin( get( $url ) ) in Mozart/Oz and getting frustrated because the interpreter would just "hang." It turns out this only happens when I run it on Windows and not on Linux. Arrrrgh!
functor import Application Open Parser at 'x-oz://system/xml/Parser.ozf' define Url XmlParser Doc Fd in Url = 'http://perlmonks.org/?node_id=207304'
% Hangs on Windows. Fd = {New Open.file init(url:Url flags:[read])}
% Commented out for testing. Also hangs on Windows % XmlParser = {New Parser.parser init} % {XmlParser parseURL(Url Doc)}
{Application.exit 0} end