Ticket #246 (new defect)

Opened 1 year ago

Last modified 1 year ago

(Resolved) Conversion to "boolean" or "AnyBoolean"?

Reported by: lth Assigned to: lth
Type: defect Priority: trivial
Milestone: Component: Spec
Version: 4 Keywords:
Cc: brendan,jeffdyer,dherman,jeffdyer,mrbkap

Description

Is there an automatic conversion from boolean or to AnyBoolean?

Converting to AnyBoolean might be beneficial to programs that use Boolean or AnyBoolean as annotations. They might do that if they have subclassed Boolean in some way.

Attachments

Change History

Changed 1 year ago by brendan

Ah, I see. Seems ok, so long as let x: AnyBoolean = foo() does convert any non-Boolean-type value returned by foo to boolean (chooses the boolean arm of the union).

/be

Changed 1 year ago by lth

  • priority changed from major to trivial
  • summary changed from Conversion to "boolean" or "AnyBoolean"? to (Resolved) Conversion to "boolean" or "AnyBoolean"?

That should be doable, this is all special case anyhow.

Note: See TracTickets for help on using tickets.