Private foo As Object Public Sub Set_Foo(ByRef aFoo As Object) foo = aFoo End Sub Public Function Get_Foo() As Object Return foo End Function とかでもまぁ別にいいんだけども、Get_, Set_とかダサいよねって事で、色々調べてたら、 Private fooObj As... 続きを読む
Sometime back Don blogged about Windows Script 5.7 release. We got lots of feedback on this, people asked for making this as an automatic update and support for 64 bit platform. The good news is that we have heard you. The biggest fix in JScr... 続きを読む
This is a Flickr badge showing public photos from cwilso. Make your own badge here. Dean Edwards asked me in a comment on the IEBlog what I personally thought of the ES4 proposal. ('You say that "Microsoft" think that the web is best served b... 続きを読む
The web has become the primary global computing platform tying together hundreds of millions of sites. In the eight years since the release of the ECMAScript Language Specification 3rd Edition (ES3), ECMAScript (commonly known as JavaScript™... 続きを読む
Scripting.Dictionaryを使って配列のunique化 WSH, JScript, JavaScript | 02:48 | と言うのを思いついた。 function unique(arr) { var dic = new ActiveXObject("Scripting.Dictionary"); for (var i = 0, l = arr.length; i < l; i++) { if (!dic.Exists(arr... 続きを読む
昨日の続きです。昨日の記事がまったくデタラメだとさすがに気まずいので、Invoke が呼ばれてるよ、という事実ぐらいは確かめようと思いました。私はバイナリアンではないのですが、がんばってMSHTMLの中を追ってみることにします。まず、C++からIDispatch::Inv... 続きを読む
IT戦記 - JavaScript で undefined って予約語じゃなかったんだ!! http://d.hatena.ne.jp/amachang/20061018/1161118305 ということだったのでActionScriptでも試してみた。 undefined = 1; trace(undefined); でパブリッシュしたら 代入演算子の左側は、変数... 続きを読む
この文書は ECMA-357 ECMAScript for XML (E4X) Specification 2nd edition を訳者 (nanto_vi) が私的に訳したものであり、ECMA International またはその他の関連団体・個人とは一切関係ありません。 この文書は正規の仕様ではありません。正規の仕様に関して... 続きを読む
それすぐ実行!JavaScript! - IT戦記を見ながら、ブックマークレットが貼れないはてなダイアリーは不便だと思いました。*1そこで、Greasemonkey。動作中身が"javascript:"で始まるpreタグをdocument内から探して、内容をAタグで囲んでブックマークレット化させ... 続きを読む