Files
mercury/samples/committed_choice.m
Fergus Henderson 2aad165033 Declare main as cc_multi', not multi'.
Estimated hours taken: 0.1

samples/committed_choice.m:
	Declare main as `cc_multi', not `multi'.
1996-01-23 09:21:18 +00:00

21 lines
474 B
Mathematica

% An example module to illustrate committed choice nondeterminism in Mercury.
% This program should print out _either_
%
% Hello, World
% or
% Goodbye, World
%
% Which one it prints out is unspecified.
% The implementation can pick either.
:- module committed_choice.
:- interface.
:- import_module io.
:- pred main(io__state::di, io__state::uo) is cc_multi.
:- implementation.
main --> io__write_string("Hello, world\n").
main --> io__write_string("Goodbye, world\n").