Checking for allocation status
It will, at times, be useful to know the allocation status of a variable; that is, whether it’s currently allocated or not. To do this, we can use the built-in allocated function, as shown in the following listing. Listing 5.9 Checking for allocation status ❶ Will print F ❷ Will print T ❸ Will print F Trying to allocate an […]