'destination expected'

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

'destination expected'

akazabobo
I keep getting a 'destination expected' error on line 1

Line 1 reads:

@0

How is this possible?

thank you
Reply | Threaded
Open this post in threaded view
|

Re: 'destination expected'

ivant
Show us the next line as well...
Reply | Threaded
Open this post in threaded view
|

Re: 'destination expected'

akazabobo
 @ 0
   d=m
  @ 1
  d=d+m
  @ 2
   m=d
Reply | Threaded
Open this post in threaded view
|

Re: 'destination expected'

akazabobo
oh ok for some reason i didnt thnk the case sensitveness apply to d and m,, oops sorry D and M :)
doyou write your code with capslock on to avoid this error?
Reply | Threaded
Open this post in threaded view
|

Re: 'destination expected'

ybakos
Programming language syntaxes are very specific: you must follow the rules.

When you read code examples, pay attention to spacing and capitalization. They are often very important.

@0, not @ 0.
D=M, not d = m.

While many languages are forgiving about whitespace, some are not. But it is still important to begin adhering to a convention, for readability.