Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
removing #'s
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Kamal Nazar  
View profile  
 More options Dec 2 1997, 3:00 am
Newsgroups: comp.lang.lisp
From: naz...@sis.port.ac.uk (Kamal Nazar)
Date: 1997/12/02
Subject: removing #'s

Can anyone lend a hand .....

I have a program that formats its input to produce output lists.
However, the output contains #'s - I will explain ...
REQUIRED OUTPUT  ( ((00) (01) (01)) ( (00) (11) (...)))
ACTUAL OUTPUT  (  ( #1=(00) (01) (01) ) ( #1# (01) (...))))

i.e. Lisp uses these hashes as a shorthand label,
I want the ouput expressed without using this notation -
can anyone tell me what I'm doing wrong, or how to turn off
this behavior ??

Thanks in advance

Kamal Nazar


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik Naggum  
View profile  
 More options Dec 2 1997, 3:00 am
Newsgroups: comp.lang.lisp
From: Erik Naggum <cle...@naggum.no>
Date: 1997/12/02
Subject: Re: removing #'s

* Kamal Nazar
| Can anyone lend a hand .....
|
| I have a program that formats its input to produce output lists.
| However, the output contains #'s - I will explain ...
| REQUIRED OUTPUT  ( ((00) (01) (01)) ( (00) (11) (...)))
| ACTUAL OUTPUT  (  ( #1=(00) (01) (01) ) ( #1# (01) (...))))
|
| i.e. Lisp uses these hashes as a shorthand label,
| I want the ouput expressed without using this notation -
| can anyone tell me what I'm doing wrong, or how to turn off
| this behavior ??

your Lisp is trying to produce output that can be read back and produce a
result that is as close to the object written out as possible.  a number of
printer variables control this behavior, but in your case, *print-circle*,
if non-nil, causes the Lisp printer to remember which objects it has
previously printed and label them.  (setq *print-circle* nil) will cause
the printer to output the objects without any such attempts.  (it's called
*print-circle* because the labels are mostly useful when printing circular
structures.)

#\Erik
--
if you think this year is "97", _you_ are not "year 2000 compliant".

see http://sourcery.naggum.no/emacs/ for GNU Emacs 20-related material.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »