View Issue Details

IDProjectCategoryView StatusLast Update
0000265Ecere SDKecerepublic2014-07-11 18:22
Reporterjoey Assigned To 
PrioritylowSeverityfeatureReproducibilityhave not tried
Status newResolutionopen 
Summary0000265: eC should have the '??' operator
DescriptionC# has an operator called the "null-coalescing" operator. It's described in more detail here:

http://stackoverflow.com/questions/446835/what-do-two-question-marks-together-mean-in-c

It's useful for trying a series of expressions to find the first one that's not null. Example:

Symbol sym = localScope.findSymbol() ?? classScope.findSymbol() ?? globalScope.findSymbol();

That is much cleaner than:

Symbol sym = localScope.findSymbol();
if (!sym)
   sym = classScope.findSymbol();
if (!sym)
   sym = globalScope.findSymbol();
TagsNo tags attached.

Relationships

duplicate of 0000182 new ?? operator 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2009-10-19 20:48 joey New Issue
2010-07-25 22:26 redj Relationship added duplicate of 0000182
2012-03-08 16:52 redj Target Version => 0.45 Ginkakuji
2012-03-29 07:53 redj Category => Ecere Runtime Library
2012-03-29 07:53 redj Project @1@ => Ecere SDK
2014-07-11 18:22 jerome Target Version 0.45 Ginkakuji => 0.46.1