On Tue, 25 Nov 2025 23:53:40 GMT, Coleen Phillimore <[email protected]> wrote:

>> Yes, from what I see this same construct is used in many places. Seems this 
>> is valid because a pointer used in a boolean context evaluates to false if 
>> nullptr and true if non-null. :)
>
> This could be a simple cleanup of all these occurrences later.

Yes this is terribly obscure (doing the assignment in the loop condition check 
- surprised that is even allowed) and also violates the style-guide in relation 
to implicit booleans. But frankly it is an awful use of a for-loop in my 
opinion.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28361#discussion_r2563714065

Reply via email to