vince
03/20/2023, 9:30 PMpool
to be specified externally
class BitmapPool(size: Size, pool: Pool<Bitmap> = SynchronizedPool(SYNC_BUFFER_SIZE)) : Pool<Bitmap> by pool { ... }
2. initialize the delegate anonymously - but then I can't reference the delegate when overriding functions in the interface like super
but not
class BitmapPool(size: Size) : Pool<Bitmap> by SynchronizedPool(SYNC_BUFFER_SIZE) { ... }
asdf asdf
03/20/2023, 9:45 PMvince
03/20/2023, 9:45 PMephemient
03/20/2023, 9:56 PMasdf asdf
03/20/2023, 10:37 PMasdf asdf
03/20/2023, 10:38 PMthis
even if its somewhat unsafe