Good evening Dennis, I believe you need to add the following link command to your file
link datefns either before or after your procedure definition. In addition, the procedure julian() requires a date_rec and not a list of values The following works correctly procedure main() out1 := julian(date_rec(2017, 5, 25)) write(out1) end link datefns with the result of 2457899 However, I would also suggest that you include the following call initdate() before calling any of the procedures available in datefns.icn regards Bruce Rennie On 25/05/17 17:49, Dennis J. Darland (student) wrote: > I ran into a problem with julian > I did not find julian in the list of bugs. > > procedure main() > out1 := julian(5,25,2017) > out2 := julian("5","25","2017") > write(out1) > write(out2) > end > > -------------------------------------- > > I get: > > > Run-time error 106 > File jul_demo.icn; Line 2 > procedure or integer expected > offending value: &null > Traceback: > main() > &null(5,25,2017) from line 2 in jul_demo.icn > > ----------------------------------------------------------------------- > > > I had very recently written a snobol program > (which works fine). > > I wanted to try out the unicon snobol like pattern matching. > I got all that to work (with a lot of learning) > > The output of the snobol program is at: > http://dennisdarland.com/my_reading/Activities.html > There are links at the bottom of the program to both the snobol & > unicon source. > Also to the Unicon output with date fudged. > > I know there should be more comments, but I wrote both in about a day. > > Dennis > > P.S. snobol was under cygwin under Windows 10. > unicon was under Ubuntu 14.04 with the latest unicon distribution. > Not sure how to update unicon under windows - have not studied it. > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Unicon-group mailing list Unicon-group@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/unicon-group