Re: [Pharo-users] example in FFI manual not worked

2017-04-21 Thread Yuriy Babah
Thank Ben. 2017-04-20 12:49 GMT+04:00 Ben Coman : > Okay that helps a lot. You've done two things wrong. > > 1. You actually did > ExternalStructure subclass: #MyStructure > not >FFIExternalStructure subclass: #MyStructure > > This is what caused the error, since if you compa

Re: [Pharo-users] example in FFI manual not worked

2017-04-20 Thread Ben Coman
Okay that helps a lot. You've done two things wrong. 1. You actually did ExternalStructure subclass: #MyStructure not FFIExternalStructure subclass: #MyStructure This is what caused the error, since if you compare the class-side methods (by clicking the button) of ExternalStr

Re: [Pharo-users] example in FFI manual not worked

2017-04-19 Thread Yuriy Babah
I have recorded screencast abaut this my operations with Pharo. https://drive.google.com/open?id=0B_0p5J9SNPlBOHduQlIxdHI0bk0 But sometimes I'm moved forvard to operations: MyStructure rebuildFieldAccessors. -> DoIt -> Ok myStruct := MyStructure externalNew. -> DoIt -> Ok myStruct := id: 42. -

Re: [Pharo-users] example in FFI manual not worked

2017-04-19 Thread Ben Coman
Hi Yuriy, Hope I can help. I tried your example in build 60463 and its works fine. So lets break it down. On Wed, Apr 19, 2017 at 8:46 PM, Yuriy Babah wrote: > Hello everyone, > > I'm new to Pharo and have tried do example with structure in Unified FFI > manual. > > FFIExternalStructure subcla