Number: 1514 Date: 27-Jun-84 13':16':36 Submitter: Sannella.PA Source: Shrager.pa Subject: Want easy way to associate DEFPRINT with data-type, and save on files Assigned To: Attn: Kaplan, Jonl Status: Declined In/By: Problem Type: Design - UI Impact: Moderate Difficulty: Moderate Frequency: Everytime Priority: Perhaps System: Programming Environment Subsystem: File Package Machine: Disk: Lisp Version: Source Files: Microcode Version: Memory Size: File Server: Server Software Version: Disposition: ' ["Kaplan" "15-Sep-84 03':06':16" Status':(Open->Declined)] Description: ' Date': 26 Jun 84 14':32 PDT' From': Shrager.pa' Subject': Lisp': Print should look for datatype print FN' To': LispSupport.pa' ' Lisp System Date': 19-Jun-84 14':48':49' Machine': Dorado (Shrager)' Microcode version': 24,4' Memory size': 10000' Frequency': n/a' Impact': n/a' ' Instead of always printing out datatypes a {type}... print should try to fetch some known element, e.g., "DefaultPrintingFn" from the record, and apply it if the result isn''t NIL.' ' -----' ' Date': 26 Jun 84 17':46 PDT' From': JonL.pa' Subject': Re': Lisp': Print should look for datatype print FN' In-reply-to': Shrager.pa''s message of 26 Jun 84 14':32 PDT' To': Shrager.pa' cc': LispSupport.pa' ' See DEFPRINT, page 6.23 of IRM.' ' -----' ' Date': 26 Jun 84 18':03 PDT' From': Shrager.pa' Subject': Lisp': DEFPRINT not saved on file.' To': LispSupport.pa' ' Lisp System Date': 19-Jun-84 14':48':49' Machine': Dorado (Shrager)' Microcode version': 24,4' Memory size': 10000' Frequency': Always' Impact': Moderate' ' Okay, JonL, so you think you''re so smart, eh? Two points for pointing out DEFPRINT to me; But how come that isn''t a file command? Maybe the more general solution to this is to have a special (like in ZetaLisp) arg in DATATYPE (or RECORD or whatever) that specifies the type''s DEFPRINT and this should be put on thje props of the type, stored with the type, and loaded with the type. This is the matter I was trying to resolve in the first place.' ' --Cheers,' Jeff (Working off embarassement by turning suggestions into bug reports.)' ' -----' ' Date': 28 Jun 84 14':22 PDT' From': Shrager.pa' Subject': Lisp': AR1514 DEFPRINT' To': LispSupport.pa' ' Lisp System Date': 19-Jun-84 14':48':49' Machine': Dorado (Shrager)' Microcode version': 24,4' Memory size': 10000' Frequency': n/a' Impact': n/a' ' The best solution, suggested be Ron Kaplan, seems to be to include the DEFPRINT in the record''s INIT field.' Workaround: Test Case: Edit-By: Kaplan Edit-Date: 15-Sep-84 03':06':17