cac-t-u-s / om-sharp-users

A public forum for support / issues / suggestions about OM#
3 stars 0 forks source link

using number* as input for expand-lst #40

Open jlquispec opened 3 years ago

jlquispec commented 3 years ago

first way: when I try to create 8, this objects dissapears and #: appears into objects with number

image image image

second way: works image image image image image

j-bresson commented 3 years ago

Hi @jlquispec sorry I can't really understand everything here 🤔 . I think I would need more details (or less!:)

What I can see and explain, is that you can not create a box from "8*", because it is a symbol (a Lisp symbol), and the "box-creation mechanism" will try to evaluate this symbol to see if it is bound to a function or a class, in order to create a box corresponding to this function or class.

If you want to create a simple "value box" with it, you need to use a quote (') to specify that this symbol should not be evaluated (similar to the use of quote with a Lisp interpreter!)

In other words, you can type '8* to create a simple value box containing the symbol 8*.

jlquispec commented 3 years ago

Thanks Jean!

If you want to create a simple "value box" with it, you need to use a quote (') to specify that this symbol should not be evaluated (similar to the use of quote with a Lisp interpreter!)

That works! Excuse me for this very basic question!