I quote, therefore I am

Jim Hurley jhurley at infostations.com
Tue Feb 25 18:17:01 EST 2003


>Richard Gaskin wrote:
>
>Here's a lil' gem that's radically simplified a lot of my code:
>
>function q s
>   return quote& s &quote
>end q
>
>
>To call it:
>
>   put "I said, "& q("Let's go!")
>
>...as opposed to:
>
>   put "I said, "& quote&"Let's go!"&quote
>
>A small improvement, but a but more pleasing to the tired eye. :)
>


I find this nifty as hell. A lil' gem indeed. To take revenge on my 
struggles with quotes in the past I wrote:

on mouseUP
   put "I quote, therefore I am." into tMessage
   repeat 8 times
     put q(tMessage) into tMessage
   end repeat
   put  tMessage into field 1
end mouseUP


function q s
   return quote& s &quote
end q

And in field  1 I took some perverse satisfaction in finding: 
""""""""I quote, therefore I am.""""""""

Jim



More information about the use-livecode mailing list