Questions tagged [allegro-cl]

35 questions
1
vote
0 answers

What's so special about the form, img, span, and table tags in AllegroServe's htmlgen?

In AllegroServe's htmlgen, I noticed that the
, , , and tags are defined differently from all the other HTML tags. The third argument of their definition is non-null, unlike all the other tags. The comment in the source code…
Flux
  • 9,805
  • 5
  • 46
  • 92
1
vote
1 answer

Object Address in Memory Common Lisp

I am trying to figure out how software like SLIME or SLY gets the memory addresses of variables as it displays them in the Inspector. What Common Lisp function could I use to be able to do this programatically? Example: It is the #x100cab066d1 that…
MadPhysicist
  • 5,401
  • 11
  • 42
  • 107
1
vote
0 answers

Allegro CL Lisp editor

In Allegro CL Free Express Edition, how do I load the last LISP command in the Debug window? I am looking for similar things to an up arrow in the terminal.
Dzung Nguyen
  • 3,794
  • 9
  • 48
  • 86
1
vote
3 answers

In Allegro CL and ABCL, can I construct a struct given only its type name?

In most implementations, you can use (make-instance 'struct-type) to create a struct regardless of whether you defined a constructor function for that type. This doesn't work on Allegro or ABCL, but those implementations can still create structs at…
Kyle
  • 178
  • 1
  • 8
1
vote
1 answer

Common-Lisp Code was working fine, now "Error: Attempt to take the value of the unbound variable `*OPPONENT*'."

I'm baffled. I'm playing around with the tic-tac-toe game found in Ch 10 of COMMON LISP: A Gentle Introduction to Symbolic Computation https://www.cs.cmu.edu/~dst/LispBook/book.pdf . I worked everything up in the IDE, saved it and then…
Aaron
  • 111
  • 2
  • 8
1
vote
1 answer

lisp hash symbol replaces returned values

I've been trying to build something similar to a breadth-first tree-like structure for a graph, which contains all possible paths from a given node. I didn't have problem with the algorithm as much as I do with some sort of error that pops up.…
1
vote
3 answers

Change an editable-text value in Allegro CL

I'm trying to change the value of an Editable-Text control in Allegro CL (version 8.0.1) by clicking a Default-Button. I've read about (setf value) but haven't found any examples. The function I have ttached to the on-click event is the following …
foliveira
  • 626
  • 1
  • 8
  • 15
1
vote
0 answers

timing problems in lisp and python programs communicating over sockets

I am trying to get a python program and Allegro Common Lisp program to communicate over sockets. For now, I am trying to set up a Lisp server that listens for connections, get a python client to connect to the server, and then send a simple message…
user114167
  • 63
  • 4
1
vote
1 answer

Is there a way to use AllegroGraph with a Lisp other than ACL?

I'm so far only reading the documentation, and it says that in order to use the Lisp client I have to use ACL. ACL, the Express edition has a 30 day expiration date. Since I'm too far from even considering any commercial use, I'm not likely to buy…
user797257
0
votes
2 answers

strange behaviour of (delete .. in Allegro Lisp

I try to remove random elements from a list until the list is empty. My environment is Allegro Lisp, free edition. (setq set1 '(Nr1 Nr2 Nr3)) (delete (nth (random (length set1)) set1) set1) After some repetitions, the output of sequential calls…
slowman01
  • 13
  • 4
0
votes
1 answer

Problems using Common LISP running a hill-climbing search

This is code from my book that I need to use to run a hill-climb search using our predefined nodes. I was able to run a few other search functions successfully such as Best-first-- (which "looks" similar). Upon running this hill-climb search, it…
dantheDude
  • 21
  • 2
0
votes
1 answer

Allegro CL, Debugging functions step by step

I am trying to understand how a function works in Lisp, I used Allegro Cl quite some time ago, and I remember it had a special function in the REPL, that let you see how a function worked step by step, like in Matlab. For example, if you had this…
0
votes
2 answers

"Invalid EXCL::PREDICATE argument" error in Common Lisp

I'm making a classroom excercise in LISP, and I'm getting this error CG-USER(286): Error: Invalid EXCL::PREDICATE argument: # [condition type: SIMPLE-ERROR] Could you tell me what this is supposed to mean? I'll paste…
Jk041
  • 934
  • 1
  • 15
  • 33
0
votes
1 answer

Unbound variable in Allegro

In example code in a book I'm reading, there's a line for a macro that provides shorthand for getting the global value of a symbol: (defmacro sv (v) '(symbol-value `,v)) However, Allegro sees V as an unbound variable. I don't know how to change…
OrangeCalx01
  • 806
  • 2
  • 7
  • 21
0
votes
0 answers

why is the warning sign popping out? in lisp programming

Why is this "Warning: Free reference to undeclared variable ARAD assumed special." popping out? (defstruct Place() (pathCost 10) (childName 'none) ) (setf Arad(make-Place :childName 'Zerind)) (describe Arad)
Michimcchicken
  • 543
  • 1
  • 6
  • 21