Name

set-attr

Usage

special-form/function

Syntax

(set-attr object property value)

Description

Assigns value to property of object.

user 1 > (let obj (new null))
it: #s(  )
user 2 > (set-attr obj 'name "mies")
it: "mies"
user 3 > (attr obj 'name)
it: "mies"
user 4 > (.name obj)
it: "mies"
user 5 > (macroexpand '(setf (.name obj) "mies"))
it: (set-attr obj "name" "mies")