Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.

Public Report
Report From: Delphi Prism/Compiler    [ Add a report in this area ]  
Report #:  92391   Status: Open
Allow nullable types in case statement
Project:  Embarcadero Prism Build #:  4.0.25.721
Version:    1.1 Submitted By:   Mark Tiede
Report Type:  Suggestion / Enhancement Request Date Reported:  3/18/2011 9:29:00 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   282718
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
I thought I should be able to do this:

  case e.Result.SiteInfo.ShowRemarks of
     nil  : self.Settings.ShowRemarks := true;
     true : self.Settings.ShowRemarks := true;
     else   self.Settings.ShowRemarks := false;
     end;


when e.Result.SiteInfo.ShowRemarks was a nullable Boolean, but the compiler didn't like it.
Steps to Reproduce:
None
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01