ff-notes / ron

Haskell implementation of RON and RON-RDT
BSD 3-Clause "New" or "Revised" License
65 stars 9 forks source link

get sequential ids in RGA.edit, ORSet.newStruct #15

Open cblp opened 6 years ago

iupii commented 5 years ago

Can you describe this one in more detail?

cblp commented 5 years ago
do 
  rga <- newObjectFrame $ RGA ""
  execObjectState rga $ RON.Data.RGA.editText "hello"

creates following object:

*rga  #B/0000000DrD+000000000J  !
  @`}Xgg  'h'
  @}m_B   'e'
  @}y2B   'l'
  @{1CjB  'l'
  @}HMB   'o'
.

Events }Xgg, }m_B, }y2B, {1CjB, }HMB are created in the same action, but are not sequential. They must be }Xgg, )h, )i, )j, )k, i.e. each one must be equal to previous plus 1.