On Wed, 24 May 2000, Richard Gaskin wrote:

> On 5/24/00 12:56 PM, Scott Raney at [EMAIL PROTECTED] wrote:
> 
> > Your original post was:
> > In HyperCard, the value of any phrase in quotes returns the entire
> > phrase. In MetaCard, this:
> > 
> > the value of "my dog"
> > 
> > returns "my". Is this right? What are the rules?
> > 
> > In this case, "my dog" might look like a quoted string, but in fact
> > it's not by the time it gets to the value function.  To pass value a
> > quoted string, you would have to do:
> > the value of quote & "my dog" & quote
> > 
> > And as for the problem getting the last item as a unit, neither
> > MetaTalk or HyperTalk can get you that because they don't pay
> > attention to quotation marks when delimiting item chunks.
> 
> Pasting this into the HyperCard message box:
> 
>   the value of "my dog"
> 
> yields this result:
> 
>   my dog

Right, because the evaluation of the expression 'my dog' fails so it
returns the whole thing.  That doesn't make it a valid expression.
Some other interesting behavior in HyperCard:
the value of "3 + my dog"  -- works, returns exact string
the value of "3 + my"  -- fails, because "my" isn't a number

This seems to me to be inconsistent, albeit maybe convenient in some
situations.

As for my earlier statement about the end-of-line behavior, turns out
even I don't understand it.  It only works with some commands:
set the name of button 1 to my dog -- works, sets name to 'my dog'
put my dog -- fails, because 'my dog' is not a valid expression
  Scott

> -- 
>  Richard Gaskin 
>  Fourth World
>  Multimedia Design and Development for Mac, Windows, UNIX, and the Web
>  _____________________________________________________________________
>  [EMAIL PROTECTED]                 http://www.FourthWorld.com
>  Tel: 323-225-3717           ICQ#60248349            Fax: 323-225-0716
> 
> 
> Archives: http://www.mail-archive.com/metacard%40lists.best.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> 

********************************************************
Scott Raney  [EMAIL PROTECTED]  http://www.metacard.com
MetaCard: You know, there's an easier way to do that...


Archives: http://www.mail-archive.com/metacard%40lists.best.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to