[m-rev.] For review: ensure proper initialisation of pretty_printer

Ralph Becket rafe at csse.unimelb.edu.au
Tue Apr 27 14:12:53 AEST 2010


Peter Wang, Tuesday, 27 April 2010:
> On 27 April 2010 13:27, Ralph Becket <rafe at csse.unimelb.edu.au> wrote:
> > Peter Wang, Tuesday, 27 April 2010:
> >> get_pretty_printer_is_initialised() ->
> >>   'ML_erlang_global_server' ! {get_mutable, t__mutable_variable_foo, self()},
> >>   receive
> >>     {get_mutable_ack, undefined} -> {no};
> >>     {get_mutable_ack, Value} -> Value
> >>   end.
> >
> > Why is the 'no' in braces?
> 
> That's the representation of bool.no (a 1-tuple with an atom).
> The native Erlang false value is `false'.

Right, I was just wondering why '{no}' rather than just 'no'?
I assume this is just for regularity in the Mercury -> Erlang
conversion?
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list