You are here: Re: TRUE and FALSE are treated differently « PHP Programming Language « IT news, forums, messages
Re: TRUE and FALSE are treated differently

Posted by Paul Lautman on 01/06/08 19:56

Puzzled wrote:
> On Sun, 06 Jan 2008 19:53:43 +0100,
> Michael Fesser <netizen@gmx.de> wrote:
>
>>Second: If you print out a boolean, its value is automatically
>>converted to a string. How and why this is done is described in the
>>manual:
>>
>>| A boolean TRUE value is converted to the string "1", the FALSE value
>>| is represented as "" (empty string). This way you can convert back
>>| and forth between boolean and string values.
>
> You don't find that a daft convention? It implies that true has
> an integer value that can undergo autoconversion in a string
> context but false has no value and cannot. I can't find any
> sense in that at all.

So define your own language.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация