Page 1 of 1

Teardown

Posted: Fri Nov 24, 2023 12:17 pm
by richmond62
Poking around, as one does, among some LiveCode stacks the other day I came across this:

Code: Select all

setup
if the platform is "win32" then
   test the fontlanguage of "Aharoni" is "Hebrew"
   test the fontlanguage of "System" is "ANSI"
else
   -- TODO - test font languages on other platforms
   test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .

Anyone?

Re: Teardown

Posted: Fri Nov 24, 2023 1:00 pm
by Klaus
Neither "setup" (except in "page setup"), "teardown" nor "test" are part of the LC scripting language.
So I guess these are custom handlers/functions.
Nothing in the card or stack script or in a substack?

Re: Teardown

Posted: Fri Nov 24, 2023 1:07 pm
by richmond62
Nothing in the card or stack script or in a substack?
No.

That is a file inwith the engine.

Re: Teardown

Posted: Fri Nov 24, 2023 1:33 pm
by Klaus
What exactly does "inwith" mean? Something like "within"?
My online dictionary failed here...

Anyway, in that case I think this is buried somewhere in the compiled stuff of the engine.

Re: Teardown

Posted: Fri Nov 24, 2023 2:01 pm
by richmond62
What exactly does "inwith" mean?
'innen'

'inwith' is a standard English word, so . . .

This is a bit like when I went into a shop in Meersburg and asked,"Hast du etwas Laib?" and got a strange look, when all I wanted was some loaf.
Anyway, in that case I think this is buried somewhere in the compiled stuff of the engine.
Just what is buried? 'Teardown' and the other unknown terms?

Re: Teardown

Posted: Fri Nov 24, 2023 2:18 pm
by bn
richmond62 wrote:
Fri Nov 24, 2023 12:17 pm
Poking around, as one does, among some LiveCode stacks the other day I came across this:

Code: Select all

setup
if the platform is "win32" then
   test the fontlanguage of "Aharoni" is "Hebrew"
   test the fontlanguage of "System" is "ANSI"
else
   -- TODO - test font languages on other platforms
   test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .

Anyone?
Richmond,

This sounds as it is taken from the testing suites. Did you get it from GitHub?
Livecode has an extensive suite of tests that run to find regressions early on.
Note that "test" is also not part of Livecode.

"teardown" is a handler in this test:
https://github.com/livecode/livecode-id ... codescript

Kind regards
Bernd

Re: Teardown

Posted: Fri Nov 24, 2023 2:20 pm
by Klaus
richmond62 wrote:
Fri Nov 24, 2023 2:01 pm
What exactly does "inwith" mean?
'innen'
'inwith' is a standard English word, so . . .
thank you.
https://dict.leo.org/englisch-deutsch/
could not find it!?
richmond62 wrote:
Fri Nov 24, 2023 2:01 pm
Anyway, in that case I think this is buried somewhere in the compiled stuff of the engine.
Just what is buried? 'Teardown' and the other unknown terms?
Sure, what you could not find anywhere else.

Re: Teardown

Posted: Fri Nov 24, 2023 2:22 pm
by richmond62
Obviously a bad dictionary . . .

https://www.collinsdictionary.com/dicti ... ish/inwith

I never, ever trust dictionaries that provide a 1 to 1 translation.

Are you going to translate this literally?

"so ist das noch immer eine Kartoffel im Munde des Herrn Pastor."

Because I don't think the Minister had a tatty in his gab, but it was mair like something about How he spoke.

Re: Teardown

Posted: Fri Nov 24, 2023 2:55 pm
by bn
Hi Richmond,
bn wrote:
Fri Nov 24, 2023 2:18 pm
richmond62 wrote:
Fri Nov 24, 2023 12:17 pm
Poking around, as one does, among some LiveCode stacks the other day I came across this:

Code: Select all

setup
if the platform is "win32" then
   test the fontlanguage of "Aharoni" is "Hebrew"
   test the fontlanguage of "System" is "ANSI"
else
   -- TODO - test font languages on other platforms
   test false
end if
teardown
And could not find 'teardown' in the LC Dictionary, and, as it is in isolation here had no way of understanding what it means . . .

Anyone?
Richmond,

This sounds as it is taken from the testing suites. Did you get it from GitHub?
Livecode has an extensive suite of tests that run to find regressions early on.
Note that "test" is also not part of Livecode.

"teardown" is a handler in this test:
https://github.com/livecode/livecode-id ... codescript

Kind regards
Bernd
Does this help?

Kind regards
Bernd

Re: Teardown

Posted: Fri Nov 24, 2023 3:29 pm
by Klaus
richmond62 wrote:
Fri Nov 24, 2023 2:22 pm
Are you going to translate this literally?
"so ist das noch immer eine Kartoffel im Munde des Herrn Pastor."
I wouldn't translate this at all, why should I? 8)

Re: Teardown

Posted: Fri Nov 24, 2023 5:18 pm
by richmond62
I wouldn't translate this at all, why should I?
Well, there are worse things to do on a Friday night. 8)

Re: Teardown

Posted: Fri Nov 24, 2023 6:01 pm
by Klaus
And I don't even know any pastor, potato in his mouth or not... :-D

Re: Teardown

Posted: Fri Nov 24, 2023 8:44 pm
by richmond62
Your life sounds a bit dull, why not advertise online: "Pastor required with potato in mouth." I'll bet you get some interesting responses. 8)

Re: Teardown

Posted: Fri Nov 24, 2023 9:00 pm
by Klaus
My life is everything but dull, especially after my departure from the church about 53 years ago, old chum! :-)