Feb.02.2019 -- CAlive to introduce f++ and f-- blocks (auto-incrementing / auto-decrementing for blocks)

18 views
Skip to first unread message

Rick C. Hodgin

unread,
Feb 2, 2019, 9:33:19 AM2/2/19
to caliveprogra...@googlegroups.com
CAlive will introduce the f++ and f-- blocks, auto-incrementing and auto-decrementing for {..} block based on the initialization variable.  It will only have init and test components for readability.

    // Standard loop
    for (i = 0, j = 10; i < 10; ++i, ++j)
    {
        // Code here
    }

    // Using for++ (Note:  Single test variables are implied to be auto-initializing to 0)
    // If the initializer is specified, it is honored
    f++ (i, j = 10; i < 10)
    {
        // Code here
    }

    // Similar syntax for f--, but if the initializer is specified it is honored
    f-- (i = 9; i >= 0)
    {
        // Code here
    }

-- 
Rick C. Hodgin

Reply all
Reply to author
Forward
0 new messages