[messages] [Module Design] Calculated Property - Timing of Calculation and ???s

Joel Uckelman uckelman at nomic.net
Tue Aug 20 07:12:59 MST 2013


Thus spake Brent Easton:
> 
> > Is there a way to use null for anything at all, or is that an invalid
> > parameter at all times? Should I always use the "empty string"? The
> > reason I'm being this specific is that I need to check for whether
> > some items are "offboard" or not. In the past, using "offboard" as a
> > parameter didn't work, so I had tried using "null", meaning that the
> > piece did not have a valid location set, but to no avail. Would "empty
> > string" be the logical way to handle this at present, or is there
> > something that I'm missing?
> 
> 
> Java does not have the concept of null, so it it cannot be used in a
> beanshell expression. The empty string "" is equivalent to null. If
> property xxx has no value then {xxx==""} is true. 

Could you clarify this point, Brent? Java definitely has 'null' as
a keyword, and the value of a String reference can be null. Is there
a different between Java and BeanShell here, or is our implementation
more restrictive in some way?

-- 
J.


More information about the messages mailing list