File include in Miva?
On Thu, 3 Mar 2005 17:04:02 -0500, Andrew Noce
<[email protected]> wrote:
> Hmmmm...
>
> So what is the scope of variables and functions for scripts executed
> with MvDo?
If you MvDO a file, only code outside of functions is run, unless that
code calls a function, the functions are ignored.
If you MvDO a function, it's pretty much the opposite. Code outside
the function is completely ignored, as are other functions that aren't
called.
> You are saying they are global to the parent script, and therefore the
> MVDo is an equivalent to the include?
Yes, it is, but with the limits stated above.
> Sorry for the academic questions, I'm quite a bit rusty and keep getting
> my VBSCRIPT which I use daily mixed up with my MvScript, which I never
> use.
>
> But it's an interesting subject, anyway. Let me take it a step
> further... For those of you with extensive programming knowledge, what
> is it that keeps you working with MivaScript as opposed to moving to
This where my income is. Demand for miva development far outstrips
supply - at least that's how it looks to me.
> some other more sophisticated language? Is it the Merchant market alone,
> or the nostalgia for the language, or do you really feel it is as
> sophisticated as perl, asp, .net, php, ruby, etc.?
For me, it's the Merchant market. For pure coding fun, and for tools
that help make building miva code easier, I use Ruby.
> Miva excels in it's simplicity but I would imagine outside the Merchant
> market it would hold little other value for experienced programmers.
I'd say that's been true for years. I'm hoping (expecting?) that
with the next release, it'll jump up a class or two in the ranks of
web languages.
--
Bill Guindon (aka aGorilla)
On Thu, 3 Mar 2005 17:04:02 -0500, Andrew Noce
<[email protected]> wrote:
> Hmmmm...
>
> So what is the scope of variables and functions for scripts executed
> with MvDo?
If you MvDO a file, only code outside of functions is run, unless that
code calls a function, the functions are ignored.
If you MvDO a function, it's pretty much the opposite. Code outside
the function is completely ignored, as are other functions that aren't
called.
> You are saying they are global to the parent script, and therefore the
> MVDo is an equivalent to the include?
Yes, it is, but with the limits stated above.
> Sorry for the academic questions, I'm quite a bit rusty and keep getting
> my VBSCRIPT which I use daily mixed up with my MvScript, which I never
> use.
>
> But it's an interesting subject, anyway. Let me take it a step
> further... For those of you with extensive programming knowledge, what
> is it that keeps you working with MivaScript as opposed to moving to
This where my income is. Demand for miva development far outstrips
supply - at least that's how it looks to me.
> some other more sophisticated language? Is it the Merchant market alone,
> or the nostalgia for the language, or do you really feel it is as
> sophisticated as perl, asp, .net, php, ruby, etc.?
For me, it's the Merchant market. For pure coding fun, and for tools
that help make building miva code easier, I use Ruby.
> Miva excels in it's simplicity but I would imagine outside the Merchant
> market it would hold little other value for experienced programmers.
I'd say that's been true for years. I'm hoping (expecting?) that
with the next release, it'll jump up a class or two in the ranks of
web languages.
--
Bill Guindon (aka aGorilla)
Comment