|
|
|||||
Banned
[+1 05.11.11]
[+1 09.08.11] Регистрация: Jan 2010
Адрес: РФ. Кемеровская область
Сообщений: 3,243
|
Цитата:
|
|
|||||
const Clazz:Object = function():Object { trace('called constructor with args:', arguments); return arguments.callee.prototype.apply(arguments.callee, arguments); } Clazz.prototype = function(...args):Object { trace('prototype.this:', this); trace('called prototype with args:', args); return {toString: function():String {return '[_instance_]';} }; }; Clazz.toString = function():String { return '[Class Clazz]'; } const inst:* = new Clazz(1, 2, 3); trace(inst); |
|
|||||
Регистрация: Sep 2011
Сообщений: 524
|
trace("Ура, это танк")
)))))))) |
Часовой пояс GMT +4, время: 09:37. |
|
« Предыдущая тема | Следующая тема » |
|
|