From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 4 Oct 92 21:17:34 GMT From: seas.gwu.edu!nreich@uunet.uu.net (Norman Reich) Subject: Ada question: access types Message-ID: <1992Oct4.211734.9047@seas.gwu.edu> List-Id: Hi! I am a new user to Ada (about 2 weeks), and new to this newsgroup as well (about 2 minutes). It was suggested that I try out this newsgroup to seek help with a problem that I was having. I hope that I'm not misuing the group. Anyway, here is my question: I am using an IBM PS/2 with Meridian Ada, although I don't think what I'm doing should be compiler dependent. NOTE: Everything below is simplified to get my point across. I have the following definitions: TYPE ptr IS ACCESS node; TYPE node IS RECORD name ... ... nextn :ptr; END RECORD; nl :ptr; Within the program, I am doing a comparison, to see if the list is empty or not: if (nl = NULL) then --error at this line ... The compiler is then giving me the following error at the line above: type clash in parameter to "=" I have no idea why it would be doing this, and in examples I have seen similar things done. If anybody has any suggestions that would be helpful, I would really appreciate it. Thanks. - Norman Reich nreich@seas.gwu.edu (301) 937-4858