Nice TWiki > Dev > UserManualOmissions (r1.21) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Dev . { Changes | Index | Search | Go }
These are aspects of the language that are not covered by the User Manual, but that should be.

Aspects that should be updated:

Things that we can't do yet:

Things that have now been done:

Important

I'll be making another round of changes to the manual in the next few weeks, and I'm going to be looking at this page first when I decide what needs coverage. So if there's something important missing from the manual, please note it on this page ASAP. Your help means a better manual, and happier users.

Thanks.

-- BrynKeller - 01 Oct 2003


The documentation for || with nulls should explain the interaction between || and autoboxing. In particular, 1 || 2 seems to be the same as new Integer(1) || new Integer(2). (The compiler should also be able to detected the dead code in this situation: new Integer(1) can never be null, so new Integer(2) is never executed.)

    Integer doublePipe(?Integer i) = i || new Integer(1);
    int doublePipe(int i) = i || 1;
    void main(String [] args) {
       System.out.println(doublePipe(0));
           System.out.println(doublePipe(null));
    }
Output:
    0
    1

Topic UserManualOmissions . { Edit | Attach | Ref-By | Printable | Diffs | r1.43 | > | r1.42 | > | r1.41 | More }
Revision r1.21 - 29 Jan 2004 - 08:02 GMT - BrianSmith
Parents: WebHome
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.