by Georg Bauhaus <bauhaus@[EMAIL PROTECTED]
>
Apr 23, 2007 at 08:39 PM
On Mon, 2007-04-23 at 17:45 +0200, Philippe Ribet wrote:
> Thomas Delaet wrote:
> > Hi all,
> >
> > Is it possible to check if an object conforms to a type represented by
> > a STRING?
> >
> > For example:
> >
> > s1: STRING is "ANY"
> > s2: STRING IS "EMPLOYEE"
> >
> > a: EMPLOYEE
> >
> > I should be abble to assert is s1 and s2 represents types to which a
> > conforms? (this is true in both cases).
> >
> > I found the generating_type and generator features of class ANY, but
> > these do not provide this functionality.
> >
> >
>
> Do you know ?= operator?
I guess this is about some reflection style factory
programming? (Sometimes used to circumvent the need
of specifying interfaces and classes before selecting
one at run time, and having to compare strings and then:
factory: JCLLDR
if some_run_time_name.equals("EMPLOYEE") then
Result ?= factory.make_employee(...)
...
elseif ...
-- Georg