<?xml version="1.0" encoding="windows-1252"?>
<node id="475468" title="Re: Why no warnings for 1 in void context?" created="2005-07-16 12:06:43" updated="2005-07-25 18:43:48">
<type id="11">
note</type>
<author id="341121">
dave_the_m</author>
<data>
<field name="doctext">
It's so that code like the following works without warnings:
&lt;code&gt;
1 while ....
&lt;/code&gt;
NB - the 1 in a require isn't evaluated in a void context, so it wouldn't generate a warning anyway.
&lt;p&gt;
Dave.</field>
<field name="root_node">
475466</field>
<field name="parent_node">
475466</field>
</data>
</node>
