is it possible or suggested to use a list as an argument?
i have a sub function that creates a list and i want to use this list in other sub functions is it a good idea to do this?
im trying to keep the list variable to this code only without it getting in the way of other code.
any help or guidance is appreciated
(defun test (/ datafile file_content_list)
(setq datafile (strcat "C:\\dwg-history" (menucmd "M=$(edtime,$(getvar,date), MON DD YYYY)") ".txt"))
(setq ofile (open datafile "r"))
(while (setq curline (read-line ofile))
(setq file_content_list (cons curline file_content_list))
)
(close ofile)
(setq file_content_list (reverse file_content_list))
)