Register
Site Login
Site Search
Forums
Advertisement
Welcome to PocketMatrix. PocketMatrix is dedicated to providing the best online community for mobile device developers and enthusiests. What's new?

String terminators


String terminators

Postby Mr X » May 12, 2004 @ 2:18am

I haven't had much of a chance to play with ppl yet, but one thing that sticks out is the strings. They are surrounded by { and }?

What is wrong with "string" or 'string'? I already have to switch between those 2 choices depending on which language I am using, adding a 3rd just makes things much harder.

Regards

Sean
Sean Cross
mailto:sean@sourceitsoftware.com

Pics Print - The photo printing solution for Windows.
http://www.picsprint.com

Rental Property Manager - Rental management made easy
http://www.sourceitsoftware.com
User avatar
Mr X
pm Member
 
Posts: 240
Joined: Feb 27, 2003 @ 11:36am


Postby kornalius » May 12, 2004 @ 4:10pm

Don't worry, PPL supports " " as well. { } allows for multiple levels and any character can be included inside the { } delimiters.

Ex:
Code: Select all




{This is a "string"!
It can contain multiple lines {and other delimiters too} }

"This is another string"
4 lines; 0 keywds; 0 nums; 5 ops; 2 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  


The ' ' are for character values, just like C.
Code: Select all

i$ = 'A' + 10;
1 lines; 0 keywds; 1 nums; 3 ops; 1 strs; 0 coms    Syntactic Coloring v0.4 - Dan East  


Regards,
Kornalius
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Mr X » May 12, 2004 @ 8:11pm

Cool, I can sleep easy

Sean
Sean Cross
mailto:sean@sourceitsoftware.com

Pics Print - The photo printing solution for Windows.
http://www.picsprint.com

Rental Property Manager - Rental management made easy
http://www.sourceitsoftware.com
User avatar
Mr X
pm Member
 
Posts: 240
Joined: Feb 27, 2003 @ 11:36am


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron