Re: Guessing game

2018-04-05 Thread Brian Milby via use-livecode
cREVGeneral is an example of where recursion would be a problem. In the common library there are getProp and setProp handlers that depend on lock messages. The handlers intercept the message and in some cases need to lock messages to get the system property before continuing (so a pass would not

Re: Guessing game

2018-04-05 Thread David Bovill via use-livecode
I guess I see your perspective. For me it’s totally the right and natural thing. It’s automatically reset at the end if the handler. Personally I’d go the other way and say that if the lock messages were set command calls trapped by anything above in the hierarchy should also not get executed. I

Re: Guessing game

2018-04-05 Thread Richard Gaskin via use-livecode
Yes, for the purposes it was designed for (stopping the triggering of system messages) the "lock messages" command is very useful. The problem with getProp and setProp is that those triggers occur in response to *custom* properties, not system properties. As originally implemented (and as

Re: Guessing game

2018-04-03 Thread Mark Wieder via use-livecode
On 04/03/2018 12:51 AM, Mark Waddingham via use-livecode wrote: One could imagine a similar thing being added to the arithmetic commands:   add tLeft to tRight into tResult Would do nothing different from:   put tLeft + tRight into tResult This would just be a different way of expressing

Re: Guessing game

2018-04-03 Thread David Bovill via use-livecode
Yes - thanks for pointing that out. So far I've found the behaviour of lockmessages to be actually useful rather than an issue with getprop/setprop - seems well designed to me. The place where the syntax really shines is with functions calls rather than commands - dispatch is quite natural for

Re: Guessing game

2018-04-03 Thread Richard Gaskin via use-livecode
David Bovill wrote: > The use-case I had was to replace send syntax with the more elegant > set the ... of object to syntax. While the getProp and setProp handlers would seem to lend themselves to a lot of useful object binding opportunities, they require caution: they're treated by the

Re: Guessing game

2018-04-03 Thread Bob Sneidar via use-livecode
When I was first exposed to arrays in Foxpro, I saw them as ordered blocks of memory which could be addressed using integer values. Back then an array in memory resided in a contiguous block of memory for efficiency, and were 2 dimensional, so a reference to an element was myArray(x,y) (if

Re: Guessing game

2018-04-03 Thread David Bovill via use-livecode
Actually the use case was different. More of a generic way with nice syntax to call remote functions. This is easier now with dispatch but still not quite as elegant IMO as using virtual properties of models. Let’s take an example that I currently use. Note that the rational here is to avoid

Re: Guessing game

2018-04-03 Thread Mark Waddingham via use-livecode
On 2018-04-03 11:35, David Bovill via use-livecode wrote: True - I’d rather be first-class than complete anyway. To use a more concrete analogy - all British citizens are (since suffrage!) 'first-class' in the sense they can vote, but are not 'complete' in the sense that there exist things

Re: Guessing game

2018-04-03 Thread David Bovill via use-livecode
True - I’d rather be first-class than complete anyway. And yes thanks for suggested way around incompleteness. I still suffered culture shock. The use-case I had was to replace send syntax with the more elegant set the ... of object to syntax. I found myself wanting a bit more power ... Power is

Re: Guessing game

2018-04-03 Thread Mark Waddingham via use-livecode
On 2018-04-03 10:28, David Bovill via use-livecode wrote: Arrays as first class citizens? Give them a passport! Arrays have rights too! Need to check if they can be passed as parameters in setprop handlers - as in “set the beautiful_Colour [spellingArray] of my card to light-grey” Heh -

Re: Guessing game

2018-04-03 Thread David Bovill via use-livecode
Arrays as first class citizens? Give them a passport! Arrays have rights too! Need to check if they can be passed as parameters in setprop handlers - as in “set the beautiful_Colour [spellingArray] of my card to light-grey” Last time I checked not all first class citizens were equal. On Tue, 3

Re: Guessing game

2018-04-03 Thread Mark Waddingham via use-livecode
On 2018-04-02 21:28, J. Landman Gay via use-livecode wrote: I found this: *** Additionally the into clause has been added to all array set set operations allowing commands such as: intersect tLeft with tRight into tResult The operation of the commands is the same as the non-into form except

Re: Guessing game

2018-04-03 Thread J. Landman Gay via use-livecode
For what it's worth, I don't have a gazebo in my back yard either. I suppose that means I'm either a raven or a writing desk. I believe there's actually an answer to that riddle but I can't remember what it is. I think I saw it in the Annotated Alice. Back when we walked to school uphill both

Re: Guessing game

2018-04-02 Thread J. Landman Gay via use-livecode
Aha. Clarity. I'd wondered if properties might be involved but hadn't considered functions. Examples in the dictionary would be great. On 4/2/18 4:03 PM, Ali Lloyd via use-livecode wrote: Probably there should be an example that illustrates the use of the into clause in that way! On Mon, Apr

Re: Guessing game

2018-04-02 Thread Jerry Jensen via use-livecode
> 2/2018 12:59 PM, Jerry Jensen via use-livecode wrote: >> ...variables being promoted to arrays and multidimensional dictionaries... > Ooo... multidimensional dictionaries are *so* Douglas Adams... > Mark Wieder .Jerry ___ use-livecode mailing

Re: Guessing game

2018-04-02 Thread Ali Lloyd via use-livecode
Probably there should be an example that illustrates the use of the into clause in that way! On Mon, Apr 2, 2018 at 10:00 PM Ali Lloyd wrote: > Yes, or the return value of a function > > On Mon, Apr 2, 2018 at 9:39 PM Brian Milby via use-livecode < >

Re: Guessing game

2018-04-02 Thread Ali Lloyd via use-livecode
Yes, or the return value of a function On Mon, Apr 2, 2018 at 9:39 PM Brian Milby via use-livecode < use-livecode@lists.runrev.com> wrote: > Would that be for properties? Save the step of putting it into a variable > first? > > On Mon, Apr 2, 2018 at 2:29 PM J. Landman Gay via use-livecode < >

Re: Guessing game

2018-04-02 Thread Brian Milby via use-livecode
Would that be for properties? Save the step of putting it into a variable first? On Mon, Apr 2, 2018 at 2:29 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > > I found this: > > *** > Additionally the into clause has been added to all array set set > operations

Re: Guessing game

2018-04-02 Thread Bob Sneidar via use-livecode
First of all, neither has a Gazebo in the back yard... Bob S > On Apr 2, 2018, at 13:20 , Mark Wieder via use-livecode > wrote: > >> So when is an array not a variable? > > Why is a raven like a writing-desk? > > -- > Mark Wieder > ahsoftw...@gmail.com

Re: Guessing game

2018-04-02 Thread Mark Wieder via use-livecode
On 04/02/2018 12:59 PM, Jerry Jensen via use-livecode wrote: I recently was attempting to explain, to a savvy younger programmer new to LC, the concepts of variables being promoted to arrays and multidimensional dictionaries. She gave me the “crazy old man” look. .Jerry Ooo...

Re: Guessing game

2018-04-02 Thread Mark Wieder via use-livecode
On 04/02/2018 12:28 PM, J. Landman Gay via use-livecode wrote: So when is an array not a variable? Why is a raven like a writing-desk? -- Mark Wieder ahsoftw...@gmail.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit

Re: Guessing game

2018-04-02 Thread Jerry Jensen via use-livecode
On Apr 2, 2018, at 12:28 PM, J. Landman Gay via use-livecode wrote: > > So when is an array not a variable? I recently was attempting to explain, to a savvy younger programmer new to LC, the concepts of variables being promoted to arrays and multidimensional

Re: Guessing game

2018-04-02 Thread J. Landman Gay via use-livecode
In addition to this: I was just reading the release notes for 9.0rc1 and came across this entry: Additional forms of create command Create in now works correctly You can now create in as well as in Any guesses? I found this: *** Additionally the into clause has been added to all

Re: Guessing game

2018-03-17 Thread J. Landman Gay via use-livecode
Enlightenment! But not as create-ive. I was thinking more along the lines of: You can now create in as well as in I don't really need documentation to do that though. On 3/17/18 3:47 PM, Ali Lloyd via use-livecode wrote: Oops, looks like we need to escape < and > in release notes!

Re: Guessing game

2018-03-17 Thread Ali Lloyd via use-livecode
Oops, looks like we need to escape < and > in release notes! https://raw.githubusercontent.com/livecode/livecode/develop/docs/notes/feature-create-in.md On Sat, Mar 17, 2018 at 8:30 PM J. Landman Gay via use-livecode < use-livecode@lists.runrev.com> wrote: > I was just reading the release notes