help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Sending a method 'nil'.. generates an error


From: Rick Flower
Subject: Re: [Help-smalltalk] Sending a method 'nil'.. generates an error
Date: Fri, 18 Jun 2010 09:49:35 -0700
User-agent: RoundCube Webmail/0.2.1

On Fri, 18 Jun 2010 18:24:58 +0200, Paolo Bonzini <address@hidden> wrote:
> On 06/18/2010 05:33 PM, Rick Flower wrote:
>> I actually renamed the method for now and got past
>> that issue.. The next issue is with a missing
>> definition for #sourceString -- not sure what that
>> might be.. Any ideas?  Below is a snippet of test
>> code using this :
>>
>> table := RTFTableModel
>>    sending: #(#yourself #sourceString) , (Array with: nil)
>>    to: (testClass selectors asArray
>>        collect: [:sel | testClass compiledMethodAt: sel])
>>    labels: #('Selector' 'Source code') , (Array with: [Time now
>> printString]).
>>
>> I'm guessing it's some way to get the source for
>> a method perhaps?  I'll probably disable it for now
>> or change the test code to not use that.. This is
>> probably a Squeakism that may not directly port over
>> to GST.. ?
> 
> That would be #methodSourceString (for some strange historical reason) 
> in GST.

Thanks.. Interestingly enough I found the generated RTF
appears to be invalid as MS-Word does not like it and 
the general format it uses doesn't match examples in the
RTF Wikipedia page.. Oh well.. Not sure I'll have time to
retrofit this code afterall..   If someone else wants it, 
I'll hand it over.. Time to head back over to the icky
land of 'Perl'.. Eww!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]