3 ms·
"obj c libraries" Any library in the image can be accessed via messaging without wrappers, that's the "peer" idea. C functions currently have to be wrapped, o
by mpweiher 13y ago
"obj c libraries"
Any library in the image can be accessed via messaging without wrappers, that's the "peer" idea. C functions currently have to be wrapped, one of the reasons I did an Objective-C wrapper for CoreGraphics: https://github.com/mpw/MPWDrawingContext https://github.com/mpw/MPWDrawingContext
The REPL / command-line script interpreter also has a convenience method for loading frameworks, so `context loadFramework:'AppKit' will load the AppKit and also parse the scripting-bridge definitions so you have access to constants.
Combined with the ability to drop back into the REPL, this has made it possible for me to trivially create custom shell, for example pdfsh <filename> loads a PDF into memory and then drops me at the command prompt with an object representing the PDF bound to the variable `pdf`.
"iteration"
Most normal Smalltalk collection/block iteration protocol is supported, so #to:do: is just shorthand for first #to: , creating an Interval, and then #do: iterating that interval. In addition to the ones taking a block argument, you also get the equivalent ones taking a message.
- kilon 13y agovery well done. Its seems you have created something that has a lot of potential. Being able to use obj c libraries out of the box and yet use smalltalk syntax is a huge win for me. I only hope the best for your project :)