|
Correction Correction:
opps - my orginal observation was correct after all. Kixtart 4.12 Beta 1 does not allow COM expressions (that return an object) to be unassigned (boo!):
So this works:
$obj = $object.property
But this throws an exception (if the property returns an object):
$object.property
If the property returns a string or a number - it gets piped to the console. But I thought that if it returned an object - that the string "[object]" got displayed on the console. Or better yet ... just discarded into the bit bucket.
Anyways - think we should suggest that discarding to the bitbucket should be implemented. But in terms of the orginal observation - this also silences these COM calls:
$object.property.
with the period at the end - not sure if this makes the code easier of more cryptic to read. Probably the latter.
-Shawn
|