S
sam.s.kong
Hi,
I'm doing an ASP project in VBScript.
In VBScript, there's no namespace and no static method (class method).
Thus, what I'm trying to do is to make a clas, define instance methods
in the class, create a global object and call the instance methods.
It will simulate a namespace.
My concern is that what's the overhead.
-----------Example----------
[library.asp]
class MyClass
function F1
....
end function
function F2
....
end function
end class
set G = new MyClass 'This will be always created even if it's not used
at all.
[some_page.asp]
<!--#include file="library.asp"-->
G.F1
G.F2
-------------------------
What do you think?
Is it good or bad?
And why so?
If you have any other suggestions about namespace, share with me
please.
Thanks.
Sam
I'm doing an ASP project in VBScript.
In VBScript, there's no namespace and no static method (class method).
Thus, what I'm trying to do is to make a clas, define instance methods
in the class, create a global object and call the instance methods.
It will simulate a namespace.
My concern is that what's the overhead.
-----------Example----------
[library.asp]
class MyClass
function F1
....
end function
function F2
....
end function
end class
set G = new MyClass 'This will be always created even if it's not used
at all.
[some_page.asp]
<!--#include file="library.asp"-->
G.F1
G.F2
-------------------------
What do you think?
Is it good or bad?
And why so?
If you have any other suggestions about namespace, share with me
please.
Thanks.
Sam