Re: SETEDIT 0.4.51
Brought to you by:
set
From: salvador <sal...@in...> - 2001-10-29 14:47:08
|
I wrote: > "Thiago F.G. Albuquerque" wrote: > > > >And I think that's > > >(if (not (strcmp "#i")) (InsertText "...")) > > > > > >strcmp is just like the C function, so a match is 0, that's why I need the `not', `if' is just > > >like the C counterpart. > > > > This doesn't work, because this 'not' is bitwise. So (not 1) returns -2, which is also true. > > You have the "&" operator ;-) > But I think a not operator is needed. Ok, now (not 1) is 0 and (not 1) is 1, the old behavior is assigned to the ~ operator (a new one). I also found a couple of bugs: you couldn't enter (~ -2) and after it any run gave errors (because the error wasn't reset). I also added hexadecimals to the shl because they are supported. In another mail with subject "Re: Evaluate selection" > > This is what I have in mind: > > > > You don't need to select. > > > > You position the cursor under the first character of the expression to be evaluated (or before). > > If the first non-blank character is '(', then read up to the matching ')'. Otherwise, this must > > be a variable name. So, read the next identifier and print it's value or "Variable unbound" in > > the status line (or the message window). > > > > In both cases, the value of the expression is printed in a new line. So, to evaluate > > > > (not 1) > > > > you move the cursor to '(' and run the command. Then you get > > > > (not 1) > > -2 > > Hmmm... not sure. What about "piping" the option to manually enter the code to execute like some > input lines that take the word under cursor and make it take the "code under cursor". > The returned value should go to the message window with any other diagnostic thing. > Opinions? I implemented it. > > -------------------------------------------------------------- > > > > One other thing: what sLisp calls "eval" is called "progn" in LISP. How about changing the name? > > So that users that have a LISP background don't get confused. > > Perhaps an alias, this will avoid breaking old macros. Implemented. ---------- back to first mail: > > ------------------------------------------------ > > > > Also, there's something I'd like to ask. I would like to be able to close the Message Window with > > ESC. > > Will see. Implemented, it helps a lot when running a small code and the return value is printed in the message box. SET -- Salvador Eduardo Tropea (SET). (Electronics Engineer) Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Alternative e-mail: se...@co... se...@ie... Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA Phone: +(5411) 4759 0013 |