RE: Re: Scripting Systems

"Jamie Fowlston" <[email protected]>
Newsgroups gmane.games.devel.general
Message-ID <[email protected]>
Well, perhaps the problem is languages which add new variables as soon as
you use them. Instead, you want one that forces you to declare new ones
explicitly.

jamie


-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of
Alen Ladavac
Sent: 01 February 2004 16:29
To: [email protected]
Subject: Re: [GD-General] Re: Scripting Systems


Oh, right, my mistake. I was thinking of Lua's ability to dynamically add
vars/functions to objects, making it protoype-based. Though I don't know how
I'd call the opposite of that (class-hierarchy based? - though if I
understand Self is both protoype-based, and has class hierarchies :/ ).

Anyway, what I was trying to say was that if you are able to dynamically add
a variable to an object, then the compiler cannot statically check whether
it is supposed to exist or not. What you would need is a way to tell static
from dynamic objects. So some objects are instances of classes, and hence
cannot have their layout modified in runtime. This would solve some of your
typo problems.

But the real question is: do you really need that ability (dynamic
modification of object layout) at all? As I understand, this feature is part
of Lua primarily because it makes the syntax simple while still very
powerful (structs, classes, arrays, tables... everything is implemented the
same way). But it comes at a cost of static correctness checks. Is the
side-effect of being able to add a new member to any object really
desireable?

Note that I don't intend to criticise Lua; I quite like it. But perhaps it's
not the right tool for the job? (Though it's probably the least wrong one...
;)

Just my 0.02$
Alen


----- Original Message -----
From: "Brian Hook" <[email protected]>
To: <[email protected]>
Sent: Sunday, February 01, 2004 13:36
Subject: Re: [GD-General] Re: Scripting Systems


> you describe. Wanting a language to provide both the flexibility of
> dynamic typing and safety of static typing at the same time sounds
> a bit strange. You would need a language where some types are
> static and some are dynamic. If anybody knows of such, I'd like to
> know too. :)

Objective-C

Brian




-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_idU7



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Gamedevlists-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-general
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=557
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.