Re: Twitter Bootstrap examples working on Seaside 3.1 squeak?

gettimothy <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
Thank you. It works!

I chose the 




TBSBootstrapExample class &gt;&gt;methodNamed: aSymbol
        ^ self &gt;&gt; aSymbol




 
form as it strikes me as elegant. (Also, the message is new to me and it makes sense to use what we have)


Thanks again!



---- On Tue, 13 Mar 2018 20:27:09 -0400 Tobias Pape &lt;[email protected]&gt; wrote ---- 


&gt; On 14.03.2018, at 00:58, gettimothy &lt;[email protected]&gt; wrote:
&gt; 
&gt; Interesting...
&gt; 
&gt; The Examples "Work" but only after the debugger is entered and you hit "proceed".
&gt; 
&gt; Error is:
&gt; 
&gt; 
&gt; MessageNotUnderstood: TBSBadgeExample class&gt;&gt;methodNamed:
&gt; 

Looks like a non-portable message to me.

This should work
either 
    TBSBootStrapExample class&gt;&gt;methodNamed: aString 
        ^ self compiledMethodAt: aString
or
    TBSBootStrapExample class&gt;&gt;methodNamed: aString 
        ^ self &gt;&gt; aString


&gt; 
&gt; 
&gt; 
&gt; Where TBSFoo (in this case TBSBadgeExample) is a subclass of TBSBNootStrapExample
&gt; 
&gt; hmm...ok..was able to get rid of the DNS by adding two class methods to TBSBootstrapExample
&gt; 
&gt; 
&gt; TBSBootStrapExample&gt;&gt;methodNamed: aString "just a comment in the empty method"
&gt; 
&gt; 
&gt; and
&gt; 
&gt; 
&gt; TBSBootStrapExample&gt;&gt;sourceCode ^'foo';

Here, make an extension method in CompiledMethod (5.1) or CompiledCode (Trunk)

CompiledMethod&gt;&gt;sourceCode
    ^ self getSource

Best regards
    -Tobias
&gt; 
&gt; Of course, the source code for each example is "foo" ...which may not work in all cases, but its a start.
&gt; 
&gt; I will keep digging.
&gt; 
&gt; 
&gt; 
&gt; 
&gt; 
&gt; _______________________________________________
&gt; seaside mailing list
&gt; [email protected]
&gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.