[mercury-users] MCORBA

David Glen JEFFERY dgj at cs.mu.OZ.AU
Thu Jun 17 17:01:58 AEST 1999


On 17-Jun-1999, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> 
> How often is this IDL feature used?

My intuition says that most of the time unions would be switching on
an enumeration. I'm really just speculating, though, having not seen much
IDL that actually uses unions.

> The obvious thing to do is to support unions in the natural way in
> the easy cases, and for hard cases, either don't support them at all,
> or map them to Mercury discriminated unions where the alternatives
> are just labelled `case1', `case2', ...

Not a bad idea.


dgj
-- 
David Jeffery (dgj at cs.mu.oz.au) | If your thesis is utterly vacuous
PhD student,                    | Use first-order predicate calculus.
Dept. of Comp. Sci. & Soft. Eng.|     With sufficient formality
The University of Melbourne     |     The sheerist banality
Australia                       | Will be hailed by the critics: "Miraculous!"
                                |     -- Anon.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list