ada.tips
discriminants - Ada Programming Language Tips
http://ada.tips/tag/discriminants.html
Ada Programming Language Tips. Tue 12 August 2014. Using discriminated records to return variable amount of data from function. Sometimes, you want to return different data from a function dependending on the given parameters and the program state. For example, when searching a container for a certain element, you either want to return NOT FOUND information or the actual element. One way to do this is to use discriminated. Page 1 / 1. 2014 Tero Koskinen - Proudly powered by pelican.
ada.tips
self-reference - Ada Programming Language Tips
http://ada.tips/tag/self-reference.html
Ada Programming Language Tips. Thu 21 August 2014. By Jacob Sparre Andersen. One may in some cases want an object to contain a reference (. Shows how one can implement (consistently) self-referencing objects using limited records and discriminants. Page 1 / 1. 2014 Tero Koskinen - Proudly powered by pelican.
blog.vacs.fr
Download
http://blog.vacs.fr/vacs/download.html
Ada Web Application Framework. Is a framework to build a web application. The Java 2 Ada. Site is built on top of the Ada Web Application framework. To access this Debian respository and install it on Ubuntu 14.04 LTS (trusty), you can add the following line to your /etc/apt/sources.list. Deb http:/ apt.vacs.fr/ubuntu-trusty trusty main. To access this Debian respository and install it on Ubuntu 13.04 (raring), you can add the following line to your /etc/apt/sources.list. Ada Web Application 1.0.0. The A...
ada.tips
Case statements in Ada (video) - Ada Programming Language Tips
http://ada.tips/case-statements-in-ada-video.html
Ada Programming Language Tips. Case statements in Ada (video). Sat 01 August 2015. By Jacob Sparre Andersen. About case statements in Ada and how they are a bit special, compared to in many other languages. The presentation also mentions subtypes (subsets). Some Ada 2012 features are used. 2014 Tero Koskinen - Proudly powered by pelican.
ada.tips
Self-referencing Objects - Ada Programming Language Tips
http://ada.tips/self-referencing-objects.html
Ada Programming Language Tips. Thu 21 August 2014. By Jacob Sparre Andersen. One may in some cases want an object to contain a reference (. Shows how one can implement (consistently) self-referencing objects using limited records and discriminants. Is initialised with the access value of the containing. The first declaration of type. Could also be a forward type declaration:. We make a type, which can be passed as an. Parameter, even if it is going to be modified in the receiving subprogram.
ada.tips
records - Ada Programming Language Tips
http://ada.tips/tag/records.html
Ada Programming Language Tips. Tue 12 August 2014. Using discriminated records to return variable amount of data from function. Sometimes, you want to return different data from a function dependending on the given parameters and the program state. For example, when searching a container for a certain element, you either want to return NOT FOUND information or the actual element. One way to do this is to use discriminated. Page 1 / 1. 2014 Tero Koskinen - Proudly powered by pelican.
ada.tips
ada2012 - Ada Programming Language Tips
http://ada.tips/tag/ada2012.html
Ada Programming Language Tips. Fri 16 January 2015. Use Ada 2012 aspects to specify variable locations. Earlier with Ada 95 and Ada 2005, if you wanted to put a variable to some specific memory location, you had to use 'for Variable'Address use X' statement and Volatile pragma for that:. My Var : Unsigned 32; for My Var'Address use System'To Address (16#FF00#); pragma Volatile (My Var);. With Ada 2012 . Page 1 / 1. 2014 Tero Koskinen - Proudly powered by pelican.
ada.tips
Use Ada 2012 aspects to specify variable locations - Ada Programming Language Tips
http://ada.tips/use-ada-2012-aspects-to-specify-variable-locations.html
Ada Programming Language Tips. Use Ada 2012 aspects to specify variable locations. Fri 16 January 2015. Earlier with Ada 95 and Ada 2005, if you wanted to put a variable to some specific memory location, you had to use 'for Variable'Address use X' statement and Volatile pragma for that:. My Var : Unsigned 32; for My Var'Address use System'To Address (16#FF00#); pragma Volatile (My Var);. With Ada 2012 this becomes simpler when you use aspects:. Here is another real life example from STM32F4 code:.
ada.tips
generics - Ada Programming Language Tips
http://ada.tips/tag/generics.html
Ada Programming Language Tips. Fri 10 July 2015. Create multiple instances of same package using parameterless generics. There are some cases when you want to create and use multiple instances of same package. This is easily done by creating a generic package which does not take any parameters:. Generic package Counter is function Get Number return Natural; end Counter; package body Counter is Counter Value : Natural := 0; function Get Number . Page 1 / 1. 2014 Tero Koskinen - Proudly powered by pelican.