|
|
Eric Lippert's Blog
Browse by Tags
All Tags » JScript .NET » JScript (RSS)
-
Since LINQ was announced I've seen a lot of really positive feedback and a lot of questions and concerns. Keep 'em coming! We need this feedback so that we can both correct misconceptions early and get the design right now. One of the misconceptions that Read More...
|
-
Before I get going, a couple notable milestones. First, this is post number 200 ! Who would have believed that I'd have so much to ramble on about? ("Anyone who knows you" would be the correct answer to that rhetorical question I suppose.) Second, as Read More...
|
-
Before I begin today's technical topic, a quick link to what promises to be a terrifying , I mean, terribly interesting blog. Mario , the guy who tests the code that I write and thereby keeps me honest, the guy who's application for a backyard barbecue Read More...
|
-
Last time I gave some vague, high-level definitions of the type system concepts promotable , assignable and coercible . Today I'll give a more precise definition of promotable . The others I'll define more precisely later. Suppose we have an assignment Read More...
|
-
Stan Lippman has started an interesting series of blog entries on how Managed C++ determines which function foo to call when you call foo(bar) given that there may be several visible functions of that name in the current scope. That's quite coincidental, Read More...
|
-
I am totally amused that the comments on yesterday's entry are nigh-isomorphic to the argument that we had over this in October 2000. As noted, f.bar(f); does in fact call the base class function, not the derived class function as some might expect. I Read More...
|
-
When you're designing a new programming language, the "main line" cases are easy. It's the "corner" cases that bedevil language designers -- the little fiddly bits where two language features that make perfect sense on their own interact in some weird Read More...
|
-
You learn something new every day in this job. Or, more accurately, some days you learn things again that you'd forgotten years ago. Someone just asked me why it is that all JScript .NET classes are serializable. I admit it, my first reaction was "They Read More...
|
-
Recall that in Part One we discussed eval on the client, and in Part Two we discussed eval on the server. Today, I answer a question about eval in JScript .NET. S omeone sent me mail the other day asking why this C# program snippet didn't work: x = Microsoft.JScript.GlobalObject.eval("1"); Read More...
|
-
Hey, I'm back! And in my new location. That was the longest and least relaxing vacation I've ever taken. Fun, yes. Relaxing, no. And to top it off, my kitchen is not done yet. We're shooting for being able to run water tonight and actually use appliances Read More...
|
-
As I mentioned earlier, when you try to use a JScript .NET array when a CLR array is expected, we create a copy. But when you go the other way, things are a little different. Rather than producing a copy, using a CLR array as a JScript .NET array "wraps it up". No copy is made. The operation is therefore efficient and preserves identity. Changes made to a wrapped array are preserved Read More...
|
-
JScript .NET arrays and hard-typed CLR arrays work together, but because these two kinds of arrays are so different they do not work together perfectly. The problem is essentially that JScript .NET arrays are much more dynamic than CLR arrays. JScript .NET arrays can change size, can have elements of any type, and so on.
Read More...
|
-
As I was saying the other day, CLR arrays and JScript arrays are totally different beasts. It is hard to imagine two things being so different and yet both called the same thing. Why did the CLR designers and the JScript designers start with the same desire -- create an array system -- and come up with completely different implementations?
Read More...
|
-
JScript arrays are sparse, variable-sized, single-dimensional, soft-typed associative arrays. CLR arrays are the opposite in every way! They are dense, fixed-size, multi-dimensional, hard-typed nonassociative arrays. It is hard to imagine two more different data structures with the same name. Making them interoperate at all was a pain in the rear, believe me.
Read More...
|
-
I thought I might spend a few days talking about the JScript and JScript .NET type systems, starting with some introductory material.
There is a lot of terminology associated with type systems. What exactly is weak typing? What is a subtype? Just what is a type anyway? These terms are often bandied about and seldom actually defined precisely.
Read More...
|
|
|
|