HP Forums

Full Version: Coments in a Prime Program
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry if this has been discussed, but I am having a problem. I am having a problem with EVERY program I download or write, when I come to a comment line my listing stops executing. As an example, I'd like to quote just a portion from Egan Ford's Breakout Program. I hope you don't mind, Egan...

// breakout hp prime v 1.0
//
// Egan Ford <egan@sense.net>
//
// Inspired by Tugdual's Pong alpha and Atari 2600 Breakout
//

brickout();
drawbricks();
drawballs();
drawscore();
drawtext();

local j, t, m;
local paddle_x, paddle_y, paddle_w, paddle_h, paddle_m; // paddle
local score_y, brick_h, brick_n; // bricks
local brick_colors, brixel_x, brixel_y, brick_w;
local x, y, vx, vy, ball_m, ball_w, ball_n, rel_x; // ball

The problem is, the emulator will not read anything until I delete the 1st six lines beginning //. When I delete these lines, my calculator read down until the line that ends // paddle. This line cannot be read until I erase the //paddle, then it works.

I have to go through the entire line erasing all comment, then the calculator and software works perfectly. What am I doing wrong?
I haven't had any problems, but to make sure your browser isn't changing the characters I've updated my breakout post with a zip file. See if that works.
May I suggest that the moderators move this thread to be placed within the Breakout thread, since this does not actually consist of a new program.
(01-06-2014 04:19 PM)Han Wrote: [ -> ]May I suggest that the moderators move this thread to be placed within the Breakout thread, since this does not actually consist of a new program.


This has NOTHING to do with the BREAKOUT thread per se... I specifically stated it happens for EVERY single Prime program I download. Might as well re-post it in every Prime Software sub-topic then huh? Smile
Quote:This has NOTHING to do with the BREAKOUT thread per se
This has NOTHING to do in the Software Library !
Touche!
Reference URL's