compilation in allegro - or maybe not

You have problems, and we're glad to hear them. Explain the problem, what you have tried, and where you got stuck.
Feel free to share a little info on yourself and the course.
Forum rules
Please respect your teacher's guidelines. Homework is a learning tool. If we just post answers, we aren't actually helping. When you post questions, be sure to show what you have tried or what you don't understand.

compilation in allegro - or maybe not

Postby bubu » Wed Jun 19, 2019 11:58 pm

Dear everyone,
I tried this in Allegro cl 10:

Code: Select all
(defvar v 3)
(defvar w 19)

(defun vala (v)
  (let ((w 7))
    (print v)
    (print W)
    (mi (+ v w))))
(defun mi (mi-arg)
  (print mi-arg)
  (print v)
  (print w))


but every time i try it, just sends me back a v and w, not their values and definitely not twice. I'm a real noobie, so i cannot even imagine how many ways i can be wrong.
i can't even compile normally in Allegro. i use :cl filename.extension - is that right? please explain .. anything.

with gratitude, bubu
Last edited by nuntius on Thu Jun 20, 2019 5:08 pm, edited 1 time in total.
Reason: add code tags
bubu
 
Posts: 1
Joined: Wed Jun 19, 2019 11:46 pm

Return to Homework

Who is online

Users browsing this forum: No registered users and 2 guests

cron