[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Creating Objects from the .scm file
From: |
Pau Fernandez Duran |
Subject: |
Creating Objects from the .scm file |
Date: |
Mon, 15 Nov 1999 12:58:17 +0100 (CET) |
Hi all,
I just would like to know if there is any way in which I could create an
object using a class object specified in a .scm file. As an example, we
could have:
(list
(cons 'colony
(make-instance 'AntColony
#:antClass ArmyAnt <--------- Right here !
...
This is useful if you want to switch between diferent classes of ants in
the same colony without having to compile each time. I was thinking of
using the string "ArmyAnt" and calling a function (which I don't know if
really exists) _get_class_from_String() or similar, but I haven't found
such a function (yet).
Any hints??
Many thankx in advance,
------------------------------------------------------
OOO Pau Fernandez Duran
OOO Complex Systems Research Group
OOO Departament de Física y Enginyeria Nuclear (FEN)
UPC
Mòdul B4, Campus Nord UPC Tel. +34-93-4017056
c/ Sor Eulalia d'Anzizu s/n email: address@hidden
08034 Barcelona
SPAIN
------------------------------------------------------
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
- Creating Objects from the .scm file,
Pau Fernandez Duran <=