Reply to bug or feature? (OO design/languages)

Your name:

Reply:


Posted by www.douglassdavis.com on 09/17/05 12:20

All three of the following classes give "compile-time" errors. It
hinders me from doing what I want to do... And it seems there is no way
around it. But, are each of these cases examples of how the language
should behave? Are any of the examples a case of PHP being
"incorrect?"


class MyClass
{
static $x = 2;
static $y = self::$x; // error
}

class MyClass2
{
var $x = 2;
static $y = $x; // error
}


class MyClass3
{
const a = array(1,2); // error
}

--
http://www.douglassdavis.com/

[Back to original 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

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