Re: [Pharo-users] UFFI and opaque(ish) types

2018-11-30 Thread phil--- via Pharo-users
--- Begin Message --- Inherit from FFIOpaqueObject + initialize TypeMap I have a few here: https://github.com/Pharophile/XmppTalk https://github.com/Pharophile/XmppTalk/tree/master/packages/XmppTalk-ExternalStructures.package https://github.com/Pharophile/XmppTalk/blob/master/packages/XmppTalk-

Re: [Pharo-users] How to take care that the + before a number is ignored

2018-12-02 Thread phil--- via Pharo-users
--- Begin Message --- I am not using a file, but copy/paste my puzzleInput into a puzzleInput method. Then I use lines from there. e.g. shifts ^ self puzzleInput lines collect: [ :each | ((each beginsWith: '+') ifTrue: [ each allButFirst ] ifFalse: [ each ]) asNumber ] Because the challeng

Re: [Pharo-users] can I improve this

2018-12-03 Thread phil--- via Pharo-users
--- Begin Message --- CyclicReadStream. Not in base Pharo. I wish. We have atWrap: but not the best. Phil On Mon, Dec 3, 2018 at 1:17 PM Richard O'Keefe wrote: > "if I use do: this ends at the end of the array." > True. But all that means is that you have to keen on using #do:. > > Proces