#include <iostream>
#include "uCalc.h"

using namespace std;
using namespace uCalcSoftware;

int main() {
   uCalc uc;
   // Language specific - auto-releasing Item object
   cout << "auto-releasing Item (language-specific)" << endl;

   { // MyVar resources will NOT be released when MyVar goes out of scope
      auto MyVar = new uCalc::Item("Variable: x = 123");
      // Call MyVar.Release() explicitly if want to release it here
   }

   { // MyVar resouces will be released automatically when MyVar goes of scope
      
      uCalc::Item MyVar("Variable: x = 123");
      // No need for MyVar.Release(), it will automatically be released
   }

}