Показать сообщение отдельно
Старый 16.02.2010, 05:29   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
Insert containers into container
Источник: http://alexvoy.blogspot.com/2010/02/...container.html
==============

A short note about the difference between inserting and adding containers to a container.

If we use += operator to add new containers to a container, they will be added as a consequence of usual values (plainly).


X++:
static void SisTestContainer(Args _args)
{
    container   c;
    container   pair;
    int         i;
    ;
    pair = [1, "first"];
    c += pair;
    pair = [2, "second"];
    c += pair;
    pair = [3, "third"];
    c += pair;

    infoLog.add(Exception::Info, strfmt("conlen %1", conlen(c)));
    
    for (i = 0; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
За это сообщение автора поблагодарили: wojzeh (1).