question about This

Matt Neuburg matt at tidbits.com
Wed May 29 12:31:52 PDT 2002


On Mon, 27 May 02 17:41:44 -0700, Brian Andresen <brian at techsoln.com> said:

>
>On 5/27/2002 4:44 PM, Matt Neuburg <matt at tidbits.com> wrote:
>
>>  local (pta = html.getpagetableaddress());
>>  script.newscriptobject("return this", @pta^.weirdness);
>>  return pta^.weirdness()
>>
>>Now, I claim *that* works when rendering statically but not when rendering
>>dynamically. m.
>
>The keyword "this" isn't defined for scripts housed in a local variable.

So you're saying that during dynamic rendering the page-table is, or is in,
a local variable outside my current scope? But if that's so, why am I able
to get at it with html.getpagetableaddress()? To put it more clearly, why
isn't the status of the page-table the same no matter how I get at it? If I
can say @html.getpagetableaddress()^.somescript, why can't I say "this"
from within that very same script? We are speaking of the very very same
object so I don't get why the status of these two ways of addressing it
differs. That's the problem I'm having here. m.
-- 

matt neuburg, phd = matt at tidbits.com, http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/



More information about the Frontier-Users mailing list