ada - How to check the type of a variable -


i need verify variable type.

is there way check type of variable in ada?

i've tried looking @ ada attributes didn't see anything.

ada typed language there no need have function return variable's type, there in python or ruby (duck typed languages) because when declare variable specify type. program knows type.

if variable x declared type t'class, type of actual value can t or type derived t. in case, can use x'tag tag of value's actual type, closest can come getting actual type. once have tag, can things getting type's name (there functions in ada.tags), comparing tag of type see if it's type, etc. integer not tagged type, can't use 'tag on , there no use because primitive type.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -