chris613
2019-10-7 14:17:19

i think im missing something here, maybe some more reading is needed on my part …. but the method (get-extent)[https://docs.racket-lang.org/gui/snip_.html?q=snip%25#%28meth._%28%28%28lib._racket%2Fsnip..rkt%29._snip~25%29._get-extent%29%29] that needs to be implimented for any new snip% does not return anything ?


chris613
2019-10-7 14:25:52

okkayyy i think im getting somewhere, the interface is actually a set of … pointers? (boxes) that the snip implimenter then sets to values?


soegaard2
2019-10-7 15:32:18

@chris613 Yes, the contents of the boxes will be updated. Can’t remember seeing that type of interface elsewhere.


samdphillips
2019-10-7 16:11:17

It seems like a very C interface


samth
2019-10-7 17:31:00

yes, those interfaces derive fairly directly from when they were implemented in C++ (long long ago)