[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

interesting results from char

From: Doug Stewart
Subject: interesting results from char
Date: Wed, 21 Jun 2017 09:17:37 -0400

this first part I understand.

>> char [0xbb,0x36]
parse error:

  syntax error

>>> char [0xbb,0x36]

now for the correct way

>> char ([0xbb,0x36])
ans = �6

now for the interesting results!

>> q= char x=[ 0xbb,0x36]
parse error:

  syntax error

>>> q= char x=[ 0xbb,0x36]
Ok this is definitely a syntax error

now the unusual result.

 char x=[ 0xbb,0x36]
ans = x=[ 0xbb,0x36]
>> q=ans
q = x=[ 0xbb,0x36]

So why when I try 
q= char x=[ 0xbb,0x36]
it is a syntax error  but
 char x=[ 0xbb,0x36]
is not a syntax error and the ans can be used as a string of "x=[ 0xbb,0x36]"

Just curious!
DASCertificate for 206392

reply via email to

[Prev in Thread] Current Thread [Next in Thread]