Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the difference between using c-input (AKA c-in) and c-formula (AKA c?) in a slots :initform ?

AKA Formula input slots
0
10 Posted

What is the difference between using c-input (AKA c-in) and c-formula (AKA c?) in a slots :initform ?

0

The two define different kinds of cells: A c-input cell is a cell whose value may be set through explicit procedural code, using setf on the slot. Note: When the cell is referenced by other cells in a cells constraint network, setf-ing the cell causes the values of other cells to be recomputed. A c-formula cell is a cell whose value is obtained through evaluation of a formula. Note that the usual semantics of :initform do not apply when :initform is given by c-formula. Instead of just setting the value at initialization, the c-formula (generated from the supplied lisp form) specifies the dynamic relationship between the slot’s value and other aspects of the program state.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123