Показать сообщение отдельно
Старый 04.08.2008, 09:56
terbooter вне форума Посмотреть профиль Отправить личное сообщение для terbooter Найти все сообщения от terbooter
  № 7  
Ответить с цитированием
terbooter

Регистрация: Oct 2006
Адрес: Novosibirsk-Kaliningrad
Сообщений: 1,278
Отправить сообщение для terbooter с помощью ICQ Отправить сообщение для terbooter с помощью Skype™
У мука на 17 странице такие примеры есть OReilly.Essential.ActionScript.3.0.Jun.2007.pdf
Цитата:
When creating a new object without constructor arguments, some programmers
choose to retain the constructor-argument parentheses. For
example, some programmers prefer to write:
new VirtualPet( )
rather than:
new VirtualPet
The choice is entirely stylistic; ActionScript allows both formats. However,
the ActionScript programming community favors the former
style (with parentheses) over the latter (without parentheses). Hence,
from now on, this book will always include parentheses when creating
new objects, even when no constructor arguments are used.
*Я когда увидел впервые инстанциацию без скобок у меня
глаза на лбу полдня были -)


Последний раз редактировалось terbooter; 04.08.2008 в 12:09.