Re: Option::Type and Calliability::Type

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Option-Type-and-Calliability-Type-tp11315p11316.html

On Sat, 2006-10-21 at 23:08 -0500, Joseph Wang wrote:
> Option::Type has -1 for Put and 1 for Call while
> Calliability::Type has 0 for Put and 1 for Call
>
> At the minimize the two should be made consistent

Yes (even though converting enums to ints gives me the heebie-jeebies.)

> , but I was wondering if it
> makes sense or not to merge these two into one enum.

Probably. Or maybe not. Hmm. I'm not very helpful today, am I?

Ideas anyone?

Later,
        Luigi


----------------------------------------

An ideal world is left as an exercise to the reader.
-- Paul Graham