From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nac.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!news2.euro.net!newsfeed.freenet.ag!news.babsi.de!open-news-network.org!news2.open-news-network.org!.POSTED!not-for-mail From: Thomas Schmidt Newsgroups: comp.lang.ada Subject: Re: "accessibility check failed" on Node Date: Thu, 27 Jun 2013 13:19:18 +0200 Organization: news.babsi.de for open-news-network.org Message-ID: References: NNTP-Posting-Host: ltea-047-067-147-043.pools.arcor-ip.net Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news2.open-news-network.org 1372331957 15445 47.67.147.43 (27 Jun 2013 11:19:17 GMT) X-Complaints-To: abuse@open-news-network.org NNTP-Posting-Date: Thu, 27 Jun 2013 11:19:17 +0000 (UTC) User-Agent: Unison/2.1.10 X-Original-Bytes: 3310 Xref: number.nntp.dca.giganews.com comp.lang.ada:182112 Date: 2013-06-27T13:19:18+02:00 List-Id: Hi all, thank you for your tips On 2013-06-27 08:24:52 +0000, Simon Wright said: > spent quite some time making a compilable example. It would have been > kind of you to have done the same! Sorry, next time I'll offer a complete compilable example. > The call in > > position : constant NodeSets.Cursor := > graph.nodes.Find (aNode.all'Access); > > seemed a bit magical (a respected colleague said that he found himself > using ".all.Access" as a band-aid for shutting up the compiler's > complaints about type mismatches without bothering to understand > them). Exactly my way: "without bothering to understand them". But it solved my problem. But thank you to your hints. I'll try - to avoid anonymous types, - unnecessary access types, - declare access parameters to exclude null (if usefull). - (I'm not really a friend of those Ada naming conventions using undersore between name components). - I'm looking for some tutorial describing the most important differences between C++ and Ada. I like Ada being a really type safe and straight forward language offering a lot aspects (like the task concept, …) I'm missing in C/C++. But as coming from C/C++ its sometimes difficult to really understand Adas concepts. So I had to learn that Adas in-parameter mode doesn't match C++s call by value. That's one way to avoid access parameter, I think. I'm not really familiar with Adas accessibility levels. And last but not least I'm currently on the way to understand the differences between extensible tagged types and class-wide types. Some of you mentioned that I could use some publically accesible libraries to build up my neural network. That's ok, I'm not really a friend of reinventing the wheel. But my goals are not only those neural networks but also the Ada language. Otherwise I would use C++ (which is really a mess but I'm familiar with it) or use some publically available NN simulators. I think the best way to learn is in using "real" jobs than examples simplifying the world. It would be a great deal to write my own neural net simulator in Ada! Thanks Thomas