#8 $Increment ?

open
nobody
None
5
2012-12-29
2003-03-11
Jerry Goodnough
No

It would be nice if GT.M supported $Increment - Similar
to Cache or DSM.

Discussion

  • K.S. Bhaskar
    K.S. Bhaskar
    2003-03-28

    Logged In: YES
    user_id=82850

    This is under consideration for implementation later this
    year (2003). Meanwhile, for constructs of the form
    $INCREMENT(^x) use either TStart () Set ^x=^x+1 TCommit, or,
    if you have access to all the places where ^x may be
    modified, then protect them with an M lock, along the lines
    of Lock +x Set ^x=^x+1 Lock -x.