dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pnet-developers] Dynamic Typing in IL for scripting languages?


From: Rhys Weatherley
Subject: Re: [Pnet-developers] Dynamic Typing in IL for scripting languages?
Date: Fri, 28 Mar 2003 07:02:57 +1000
User-agent: KMail/1.4.3

On Friday 28 March 2003 04:24 am, minddog wrote:
> Hey,
>       I'm going through my old code(pretty much useless) for ghp thinking I 
> can
> revive it.  I remember the whole thing about dynamic typing was causing my
> a headache.  Wouldn't it be a lot less code to write for ghp if we worked
> on an addition to IL for dynamically typed languages?

IL already works with dynamically typed languages to a degree (e.g. JScript, 
Mercury).

JScript in particular represents everything as an "Object", and then uses the 
"is" operator and the "GetType()" method to determine what something is 
before using it.  There are a bunch of conversion methods in the "Convert" 
class for converting arbitrary objects into specific types (Convert.ToString, 
Convert.ToNumber, etc).

I hope this helps.  Fergus may be able to provide some additional pointers 
from his Mercury experience.

Cheers,

Rhys.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]