0 Members and 2 Guests are viewing this topic.
"Hello "&"World"&char(33
Maybe the ability to add quotation marks to a string would be nice, like using escape code or whatever it's called. Like, the " symbol means you type Code: [Select]/" and the / symbol means you type Code: [Select]// just like in Java. This would also allow for escape sequences like newlineCode: [Select]/n
/"
//
/n
Quote from: program4 on March 16, 2011, 09:06:41 pmMaybe the ability to add quotation marks to a string would be nice, like using escape code or whatever it's called. Like, the " symbol means you type Code: [Select]/" and the / symbol means you type Code: [Select]// just like in Java. This would also allow for escape sequences like newlineCode: [Select]/nI'd actually suggest a backslash (\) instead. It's what languages like Java use, and using / could get messy when users want the division sign -- which could happen a lot on a calculator
I agree, too. This would also essentially allow digit to string conversion, if say char(62) corresponds to 1 then char(61+x) corresponds to x. But, number to string conversion would still have to be added separately.
Quote from: program4 on March 17, 2011, 09:05:04 pmI agree, too. This would also essentially allow digit to string conversion, if say char(62) corresponds to 1 then char(61+x) corresponds to x. But, number to string conversion would still have to be added separately.I'd recommend going with hex and standard ASCII. That'd mean that char(31) would return "1" and char(62) would return "b." It'd also make things like char(546869732069732066756e) really easy to parse if they were in hex rather than decimal.
true. Maybe a lowercase b/h? or %/$?
Quote from: graphmastur on March 21, 2011, 12:00:16 pmtrue. Maybe a lowercase b/h? or %/$?I think %/$ would be a good idea. They're hardly used in other situations.Unless we want to make them actual operators? EDIT: Btw, who's actually working on this?
I acutally like the idea of using hex for a char() command. That's actually how most people denote chars. If you want to make a decimal version, I suggest a Byte() or RShort() command.