On 3/25/2011 9:04, Igor Stasenko wrote:
That's exactly why i like it. Now i could use standard tools to figure out which FFI function using some fancy type(s). And that's exactly why i using symbols in primitive names:
<primitive: #primName module: #moduleName>
So, i can quickly access them. And it is _not_ meaningless. Its handy.
FWIW, your usage of <primitive: #primName module: #moduleName> is unnecessary. The strings are interned for the very reason you're describing so if you browse the senders of SoundPlugin you will find all of those:
<primitive: 'primitiveSoundAvailableSpace' module: 'SoundPlugin'> <primitive: 'primitiveSoundGetVolume' module: 'SoundPlugin'>
etc. And yes, it's extremely handy (for example) to find all the sites using a particular plugin.
Cheers, - Andreas