You are here: Re: Properties in PHP 5 « All PHP « IT news, forums, messages
Re: Properties in PHP 5

Posted by Norman Peelman on 06/25/05 04:14

"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:RaIue.2402$Ar5.2187@newsfe5-win.ntli.net...
> Norman Peelman said the following on 24/06/2005 01:00:
> > "Tony Mays" <tony@nospam.com> wrote in message
> > news:liuue.178$Eo.15@fed1read04...
> >
> >>Norman Peelman wrote:
> >>Classes in PHP are understandably different (seeing this behavior) from
> >
> > the
> >
> >>Object Model laid out in C++. This at least has become obvious to me
over
> >>the last two days. Coming from C++, and I understand PHP is a scripting
> >>langauge, I would have gotten an error since TSample is a class with
just
> >
> > a
> >
> >>blank constructor and NO properties available to be SET. See my point.
I
> >>also am aware that OOP is somewhat new to PHP unlike other languages
(C++
> >>for instance).
> >>
> >>Even with that being said ... some aspects of PHP's looseness are
> >>appreciated while others (like this one) are not. My preference ... it
may
> >>not be yours.
> >>
> >
> > I guess I assumed that the properties were already part of the class,
> > sorry. What problems could this cause?
> >
>
> Well, for one, typos of member variable names don't cause warnings.
>
>
> --
> Oli

I never would have thought about it from a programming point of view...
thanks.

Norm
--
FREE Avatar hosting at www.easyavatar.com

 

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

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