Re: Fun with answer and files()

2019-01-15 Thread Klaus major-k via use-livecode
Hi Paul,

> Am 15.01.2019 um 15:15 schrieb Paul Dupuis via use-livecode 
> :
> 
> On 1/15/2019 8:02 AM, Klaus major-k via use-livecode wrote:
>> put specialfolderpath("desktop") into tFolder
>> answer files(tFolder)
> I would say this is a parser bug and should probably be reported

thanks for the advice, done:


> the fact that 'answer files(..." gets parsed as the command 'answer files 
>  ..." is poor syntax parsing.
> 
> If you had a space between 'files' and the open paren, I can understand the 
> issue, but any symbol connected immediately to a right paren should be 
> evaluated as a function.

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Fun with answer and files()

2019-01-15 Thread Paul Dupuis via use-livecode

On 1/15/2019 8:02 AM, Klaus major-k via use-livecode wrote:

put specialfolderpath("desktop") into tFolder
answer files(tFolder)


By the way, a really really good find!


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Fun with answer and files()

2019-01-15 Thread Paul Dupuis via use-livecode

On 1/15/2019 8:02 AM, Klaus major-k via use-livecode wrote:

put specialfolderpath("desktop") into tFolder
answer files(tFolder)


I would say this is a parser bug and should probably be reported

the fact that 'answer files(..." gets parsed as the command 'answer 
files  ..." is poor syntax parsing.


If you had a space between 'files' and the open paren, I can understand 
the issue, but any symbol connected immediately to a right paren should 
be evaluated as a function.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Fun with answer and files()

2019-01-15 Thread Klaus major-k via use-livecode
Hi all,

> Am 15.01.2019 um 13:52 schrieb Klaus major-k via use-livecode 
> :
> 
> Hi friends,
> 
> yesterday I wanted to save a line of script and wrote:
> ...
> put specialfolderpath("desktop") into tFolder
> answer files(tFolder)
> ...
> Instead of:
> ...
> put specialfolderpath("desktop") into tFolder
> put files(tFolder) into tFiles
> answer tFiles
> ...
> 
> Before you try, think about what you would exspect and then try it!
> 
> At least I was heavily suprised when I did NOT see all files from my 
> desktop listed in an answer dialog! :-)
> 
> Hint: 
> Using brackets fixed it.

before you start a lengthy reply, I understand what is going on here, 
just wanted to share my AHA-experience. :-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Fun with answer and files()

2019-01-15 Thread Klaus major-k via use-livecode
Hi friends,

yesterday I wanted to save a line of script and wrote:
...
put specialfolderpath("desktop") into tFolder
answer files(tFolder)
...
Instead of:
...
put specialfolderpath("desktop") into tFolder
put files(tFolder) into tFiles
answer tFiles
...

Before you try, think about what you would exspect and then try it!

At least I was heavily suprised when I did NOT see all files from my 
desktop listed in an answer dialog! :-)

Hint: 
Using brackets fixed it.


Best

Klaus
--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode