Register | Login
Forum Index > Bugs and Fixes > ord() problem
Author Message
Pages: 1
0CodErr
Ziron Guru
(send private message)

Posts: 199
Topics: 37

Location:
[1733] ord() problem - posted: 2015-02-18 22:55:19
Seems this code cannot compiles, console closes without success message:
Code:
program RAW_IMAGE 'test';

#set bits 32;

al = ord('\');
Admin
Site Admin

avatar

(send private message)

Posts: 932
Topics: 54

Location:
OverHertz Studio
[1734] - posted: 2015-02-18 23:06:04
This should cause an unexpected EOF, this is because \ acts as a special character in strings, so you are actually outputting ' inside ord.

try al = ord('\\');

Download Ziron
Get free hosting for Ziron related fan-sites and Ziron projects, contact me in private message.
Pages: 1
create new reply


Quick reply:

Message:



Currently Active Users:
There are currently 2 user(s) online. 0 member(s) and 2 guest(s)
Most users ever online was 999, May 11, 2018, 10:01 am.


Statistics:
Threads: 224 | Posts: 1847 | Members: 50 | Active Members: 50
Welcome to our newest member, NobodyAtWork
const Copyright = '2011-2021 © OverHertz Ltd. All rights reserved.';
Web development by OverHertz Ltd