invalid prefix in selected component "<variable name>"

4
Feb

It is usual for programmers to declare a variable and then dereference it as in:

1
 

This very much looks like object oriented programming in C++, Java, JavaScript, etc. where o is considered the target.

In Ada, you write that the other way around as in:

1
 

Note, however, that Ada 2005 introduced the concept in the language. If the first parameter is of the same type as o, then the syntax in (1) is now valid. If you are still using an Ada 95 compiler, then you will get an error.

0
Your rating: None