Pop-Up Thingie
Sidebar
>>> Magnum BBS <<<
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Usenet
COMP.LANG.LISP
how to get Elements from a vector ?
From
Jens Kallup
@21:1/5 to
All
on Sun Dec 10 17:52:55 2023
Hello,
I get TYPE-ERROR, when I try to get a element from the vector:
(sb-ext:disable-debugger)
(setf sb-ext:*muffled-warnings* 'style-warning)
(defvar *x* #(42 32))
(defun command-line-args ()
(or
#+clisp *args*
#+sbcl *posix-argv*
nil))
;;; -------------------------------------------------------------------
;;; @brief This is our main-entry point secured with some exception
;;; stuff.
;;; -------------------------------------------------------------------
(defun main ()
(handler-case
(progn
(write-line "Hallo Du")
(setf (aref *posix-argv* 0) *x*)
(write-line *x*)
(/ 3 2))
(division-by-zero (ex)
(progn
(format t "Exception error: DIVISION-BY-ZERO occured.")
(quit)))
(type-error (ex)
(progn
(format t "Exception error: type error.")
(quit)))))
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)
Who's Online
Recent Visitors
Furryboy
Sat Jun 6 10:56:29 2026
from
Romania, Galati
via
SSH
Centurion
Fri Jun 5 22:28:01 2026
from
Berea, Ohio
via
Telnet
Ab Cadd
Fri Jun 5 17:52:51 2026
from
Sheboygan, Wi
via
Telnet
Gwylbert
Fri Jun 5 06:28:52 2026
from
Sydney, Nsw
via
Telnet
Centurion
Thu Jun 4 23:42:23 2026
from
Berea, Ohio
via
Telnet
Michal Wronka
Thu Jun 4 23:19:58 2026
from
Wroclaw, Poland
via
Telnet
Michal Wronka
Thu Jun 4 23:17:20 2026
from
Wroclaw, Poland
via
SSH
Michal Wronka
Thu Jun 4 23:13:51 2026
from
Wroclaw, Poland
via
SSH
System Info
Sysop:
Keyop
Location:
Huddersfield, West Yorkshire, UK
Users:
714
Nodes:
16 (
2
/
14
)
Uptime:
141:39:32
Calls:
12,088
Calls today:
1
Files:
14,998
Messages:
6,517,448