[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] incrementing C-style



hello,

just wondering if there's some simple syntax for incrementing counter-type variables. maybe something similar to the C "i++" or "i += 1" expressions? i tried googling sc-users for a thread on this, but came up with nothing.


maybe:

c = {:x, x<-(0..) };
c.value;
c.value;

well..

or:
c = [0];
c.atInc(0);
c.atInc(0);

but why not:
c = c + 1; ?

--





.