Const Thousand = 1000@ What is the "@" for?

sjr1917

Registered User.
Local time
Today, 10:36
Joined
Dec 11, 2012
Messages
47
Just ran across a function that has these lines of code...
What is the "@" doing?

Const Thousand = 1000@

If (N = 0@) Then
 
Identifier Type Characters... Thanks.
Interesting feature. I think I prefer the full declaration, it's clearer on those late night code review sessions.
 
Little trick you can do in the immediate pane, in a pinch, is run the TypeName() function, like ...
Code:
? typename(1@)
Currency

? typename(1&)
Long

? typename(1!)
Single

? typename(err)
ErrObject
 
Identifier Type Characters... Thanks.
Interesting feature. I think I prefer the full declaration, it's clearer on those late night code review sessions.

I agree. Short cuts and lack of any comments may seem "quick" when starting, but full declarations and some comments about some "slick" move are very helpful and time saving under many debugging situations.

Good luck with your project.
 
Identifier Type Characters... Thanks.
Interesting feature. I think I prefer the full declaration, it's clearer on those late night code review sessions.

IIUC, the type original identifiers '%' and '!' (not sure of '#') were a feature of the original Basic interpreter handling of numerics created for the Altair in 1970's by Monte Davidoff. I don't know this for a fact but suspect that this was a shorthand to separate processing for integers and a floating-point arithmetic.

Best,
Jiri
 
I'm sure the origin is back in the days of DOS or pre-DOS. And it could very well be the Altair --- seems to be some concept/implementation that has been carried forward.

this is a link with some info
http://en.wikipedia.org/wiki/BASIC
 

Users who are viewing this thread

Back
Top Bottom