slang-users mailing list

[2001 Date Index] [2001 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: while()


Quang Nguyen (Ngo) <quang@xxxxxxxxxxxx> wrote:
>I'm not sure which compiler you're using, but assignment expressions do
>return a value.  So, the following is okay:
>
>while ((handle = getnextresult()) != NULL)
>  {
>  ...
>  }

He was not asking a C question, but a slang one.  In the slang
language, assignment expressions do not return a value.

--John


[2001 date index] [2001 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]