Alexander Burger <a...@software-lab.de> writes: > On Wed, Sep 11, 2013 at 12:42:24PM +0200, Thorsten Jolitz wrote: >> Thanks, then I will just map over my property list and assign them "the >> canonical way" with 'put>' and friends. > > Or, if you have (or convert) the property list in a form like > > (key1 val1 key2 val2 ..) > > you might as well use 'new' or 'new!': > > (apply new! MyList '(+Cls)) > (apply new MyList (db: +Cls) '(+Cls))
Ok, one question remains (back to the original topic of this thread, so to say): What if ,-------------------------- | (class +MyClass +Entitiy) | (rel :friend (+String)) | (rel :birth (+Date)) `-------------------------- but ,-------------------------------------------------------------- | (setq MyList | '(:friend "John" | :birth 01-01-1111 | :age 36 | :employer (<<Link to DB object of class +Employer>>) ) ) `-------------------------------------------------------------- -- cheers, Thorsten -- UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe