Author Topic: Question about data types  (Read 2745 times)

Tomas

  • Newbie
  • *
  • Posts: 7
Question about data types
« on: December 13, 2011, 07:10:20 AM »
When variables are declared as Local or Global, there does not seem to be a way to declare them as numbers, integers, decimal or strings etc. How does one distinguish between the different types to avoid errors?

Malkom

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
Re: Question about data types
« Reply #1 on: December 13, 2011, 09:15:54 PM »
Hi Tomas

The HyperNext language is a weakly typed language because all variables are stored as strings and it is their context or how they are used that decides their type. This approach was also used in Apple's HyperCard because it makes it easier for beginner programmers to get started.

Regarding errors, HyperNext has checks to try and prevent crashes in cases where the variable contains inappropriate data for the context or operation.

By the way, HyperNext took many of its ideas from HyperCard whose motto was often stated as Programming for the rest of us :-

http://en.wikipedia.org/wiki/HyperCard


Malkom


 
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.