Poll: Would you use P+ for development or stick to developing in PPL
P+
PPL
P+ & PPL
[Show Results]
Note: This is a public poll, other users will be able to see what you voted for.
Post Reply 
P+ for HP Prime Development in PPL
08-26-2023, 07:53 PM
Post: #21
RE: P+ for HP Prime Development in PPL
[quote='Insoft' pid='172546' dateline='1683767659']
P+
[b]
In reality the P+ language is basically an extension to the PPL language to help with code maintenance and comprehensibility.

/quote]

I'm just not a fan of pre-processors. If it was a standalone language, I'd use it.

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
05-15-2024, 11:45 PM (This post was last modified: 05-17-2024 09:55 PM by Insoft.)
Post: #22
RE: P+ for HP Prime Development in PPL
PrimePlus (P+) now dose pre-calculations
This is useful for reducing the size and memory used by your PPL program.

eg.
Code:
#define SCREEN_WIDTH 320
var m:my_variable = #[SCREEN_WIDTH / (8 / 2)]:0;

PPL
Code:
LOCAL m:=80;
Find all posts by this user
Quote this message in a reply
05-24-2024, 10:29 PM (This post was last modified: 05-25-2024 11:41 PM by Insoft.)
Post: #23
RE: P+ for HP Prime Development in PPL
UPDATE: 1.7.1.075

NEW! Improved Structs for version 1.7.1

Previously in P+, defining a struct for a function parameter was not allowed, unlike for variables. However, starting from version 1.7.1, you can now define a struct for a function parameter just as you would for a variable.

NOTE: When defining a struct for a parameter, ensure the parameter has an alias. This alias must be used consistently when defining and using the struct.


Code:
struct Color
    r[1];
    g[2];
    b[3];
end;
MyFunction(c:color)
begin
    struct Color color;
    return RGB(color.r, color.g, color.b);
end
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)