|
|
|
Макрос с переменным количеством атрибутов
|
|||
|---|---|---|---|
|
#18+
Собственно, сабж - возможно ли такое? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.11.2008, 05:36 |
|
||
|
Макрос с переменным количеством атрибутов
|
|||
|---|---|---|---|
|
#18+
Это Вы про методы Каше? Вот как-то так: ClassMethod MultiArg(Arg1... As %List) { Write "Invocation has ", $GET(Arg1, 0), " element", $SELECT(($GET(Arg1, 0)=1):"", 1:"s"), ! For i = 1 : 1 : $GET(Arg1, 0) { Write:($DATA(Arg1(i))>0) "Argument[", i , "]:", ?15, $GET(Arg1(i), "<NULL>"), ! } Quit } (пример из документации, см. [Documentation] > [Development Guides] > [Using Cache' Objects] > [Methods] Method Arguments ) Posted via ActualForum NNTP Server 1.4 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 05.11.2008, 08:09 |
|
||
|
|

start [/forum/search_topic.php?author=ergena&author_mode=last_posts&do_search=1]: |
0ms |
get settings: |
7ms |
get forum list: |
19ms |
get settings: |
9ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
61ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
54ms |
get tp. blocked users: |
2ms |
| others: | 835ms |
| total: | 1029ms |

| 0 / 0 |
