You are here: Re: Passing null for a class-typed argument renders catchable error ?!? « PHP Programming Language « IT news, forums, messages
Re: Passing null for a class-typed argument renders catchable error ?!?

Posted by Michael Fesser on 01/13/08 21:58

..oO(seaside)

>On 13 Jan., 04:00, "Rik Wasmus" <luiheidsgoe...@hotmail.com> wrote:
>
>> For some reason:
>>
>> function appendChildNode( AST $aNewChild = NULL ) {
>>
>> }
>>
>
>But now, I can call it 'legally' with no parameters, which I don't
>want.

Correct. It's the same as if you explicitly pass NULL.

>At least any reader would think, 'OK, passing no value is OK'.
>
>Do we have other options?

For what? It does exactly what you described in your original posting.

Micha

 

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

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