|
Strongly typed?
Posted by Joe Johnson at 1/15/2001 7:00 AM EST
Engineer on team #47, Chief Delphi, from Pontiac Central High School and Delphi Automotive Systems.
In Reply to: Re: Programming question
Posted by Matt Leese on 1/14/2001 11:56 PM EST:
Matt, what PBASIC are YOU programming in? I am not a programmer by training so I may be all wet here, but I don't think that PBASIC meets the definition of a strongly typed language.
As to what will happen if you set a variable that is not as wide as the thing you are setting it equal to, the sad truth is that everything to the left of the bits PBASIC needs is ignored!
SO...
X VAR nib
X = 16 'FYI 16 is 0001000 in binary
' X will be set to 0 because the right 4 bits are 0000
Joe J.
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|