Re: constants in global.asa
From: Bob Barrows [MVP] (reb01501_at_NOyahoo.SPAMcom)
Date: 02/06/05
- Next message: Big Dave: "DNS Less Connection String with ASP"
- Previous message: 2obvious: "Re: constants in global.asa"
- In reply to: 2obvious: "Re: constants in global.asa"
- Next in thread: 2obvious: "Re: constants in global.asa"
- Reply: 2obvious: "Re: constants in global.asa"
- Messages sorted by: [ date ] [ thread ]
Date: Sun, 6 Feb 2005 08:26:39 -0500
2obvious wrote:
>> When constants are used, the constant values are
>> written into the compiled code at compile-time.
>> When variables are used, memory is allocated to
>> contain the values that will be supplied at runtime.
>
> I thought Active Server Pages were interpreted, not compiled.
This might help:
http://blogs.msdn.com/ericlippert/archive/2003/10/21/53264.aspx
>
>> There is no such thing as a read-only variable. If
>> that is truly what you want, then you need to use
>> include files or classes.
>
> Wait! --And Application variables can't be arrays or objects, they're
> just your run-of-the-mill untyped variable? Hmm.
No, they can be arrays. They can even be objects. However, just because you
can put an object in application or session does not mean that you should.
Only free-threaded objects should be put in application or session.
Otherwise, your application becomes thread-bound, which serializes all uses
of the object, killing performance.
http://www.aspfaq.com/2053
Bob Barrows
-- Microsoft MVP - ASP/ASP.NET Please reply to the newsgroup. This email account is my spam trap so I don't check it very often. If you must reply off-line, then remove the "NO SPAM"
- Next message: Big Dave: "DNS Less Connection String with ASP"
- Previous message: 2obvious: "Re: constants in global.asa"
- In reply to: 2obvious: "Re: constants in global.asa"
- Next in thread: 2obvious: "Re: constants in global.asa"
- Reply: 2obvious: "Re: constants in global.asa"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|