Search   Feed   Browse   Add
Feed items 1 - 3 of 3 for October 2005

Checking For Script Syntax Errors, This Time With Code - October 12, 2005

A number of people asked me to clarify yesterday's entry. Rather than try to talk you through it, I think the code is straightforward enough to speak for itself. Here's a little skeleton that I just whipped up. include <stdio.h>include <activscp.h>include <new> const GUID CLSID_VBScript = 0xb54f3741, 0x5b07, 0x11cf, 0xa4, 0xb0, 0x00, 0xaa, 0x00, 0x4a, 0x55, 0xe8;const GUID CLSID_JScript  = 0xf414c260, 0x6ac0, 0x11cf, 0xb6, 0xd1, 0x00, 0xaa, 0x00, 0xbb, 0xbb,...
http://blogs.msdn.com/ericlippert/archive/2005/10/12/480154.aspx

Checking For Script Syntax Errors - October 11, 2005

A reader asked me recently whether there was a way to check a chunk of JScript or VBScript for syntax errors without actually running the code. I'm sure that there are many third-party tools which you could find that do this. If you have your own script host, you can do it yourself quite easily. The trick is to initialize the engine by setting the script site, but do not do anything that would move the engine from initialized into started state. (Note that attempting to evaluate an expression...
http://blogs.msdn.com/ericlippert/archive/2005/10/11/479696.aspx

Local variables considered not very harmful - October 4, 2005

Like I said, that code from last time was just test code, not real production code. Though clearly it works, I'd never write code like that in a million years. I'm not thrilled with the way it uses the answer variable of the outer scope as an accumulator, and it is profoundly weird that the "do this function n times" function is a member of the Number prototype and not the Function prototype.  Worse still, we have a function that is essentially used as a composition operator.
http://blogs.msdn.com/ericlippert/archive/2005/10/04/476938.aspx
Available Archives
- July (1 item)
- August (6 items)
- September (4 items)
- October (3 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact