Past (20 years or so) and present code. A variety of languages and platforms. Some gems. More gravel. Some useful stuff and some examples of how not to do it.
Showing posts with label Array. Show all posts
Showing posts with label Array. Show all posts
Tuesday, September 27, 2005
[VBScript] Map. Is there a more useless function?
Map is great for other languages. I've implemented it for no good reason. And I really can't think of a good use for it. Anyone?
Thursday, August 25, 2005
[VBScript] Arrays within arrays and debugging them
Array() can contain Array(). I do it lots. But there's the issue of debugging things and of knowing what's in an array full of embedded arrays.
So I wrote PArray(). Tcl has a function of the same name which does the same thing. And the output looks very like an Euphoria sequence (now there's a nice language) but you can change that if you want to.
I suppose the next thing to do is to write a compiler of PArray() decompilations that would allow me to write nested arrays out to a text file and then read them back in. One day.
So I wrote PArray(). Tcl has a function of the same name which does the same thing. And the output looks very like an Euphoria sequence (now there's a nice language) but you can change that if you want to.
I suppose the next thing to do is to write a compiler of PArray() decompilations that would allow me to write nested arrays out to a text file and then read them back in. One day.
Labels:
Array,
Parray,
ShowStructure,
Tcl,
VBScript
Thursday, August 11, 2005
Data is Code, Code is Data -- VBScript
Interesting ...
wscript.echo eval( "dateserial( " & _
eval( "join( array( 1996,12,10 ), "","")" ) & _
")" )
I think I can do this in Tcl too. Now to find a use for it ...
Subscribe to:
Posts (Atom)