2.1 version

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: 2.1 version

Post by Dalede »

Just read the manual. thanks for posting. It will be exciting to get this new version. One small comment. The VAL command was left out of the manual.

Dale

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 2.1 version

Post by Mr. Kibernetik »

Dalede wrote:The VAL command was left out of the manual.
Ok.
Version 2.1 is already in AppStore review, so this function will be implemented in next release.

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: 2.1 version

Post by Dalede »

Mr. Kibernetik wrote:
Dalede wrote:The VAL command was left out of the manual.
Ok.
Version 2.1 is already in AppStore review, so this function will be implemented in next release.
I just got 2.1. Great job. It was my error. I had forgotten that VAL was never defined in this basic although it is an easy thing to do with a def statement. It isn't defined is why it isn't in the manual. Sorry about my error.

The only basic function that I believe is missing in this version is the ability to restore the data statements to a specific label. That would be a very nice addition.

It would also be nice to follow the ecma rule of autodefining string conversions for simple strings in a data statement so that quotes wouldn't be needed for simple values (ones with no space) but since quotes always work this is a minor point.

Dale

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 2.1 version

Post by Mr. Kibernetik »

Dalede wrote:The only basic function that I believe is missing in this version is the ability to restore the data statements to a specific label. That would be a very nice addition.
How do you see the syntax of this feature?
Dalede wrote:It would also be nice to follow the ecma rule of autodefining string conversions for simple strings in a data statement so that quotes wouldn't be needed for simple values (ones with no space) but since quotes always work this is a minor point.
Can you please give some examples to illustrate your idea.

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: 2.1 version

Post by Dalede »

Section 17 of the ECMA standard provides the examples and says,

DATA datum, ..., datum
where each datum is either a numeric constant, a string-constant or an unquoted string.
17.2 Syntax
1. data-statement = DATA data-list
2. data-list = datum (comma datum)*
17.3 Examples
DATA 3.14159, PI, 5E-10, ","

Note that PI is an unquoted string while the more complicated , at the end is a quoted string since , is a special character.

Here is an example of needed restores

Months:
Data Jan, Feb, Mar, Apr, May, June, July, Aug, Sep, Oct, Nov, Dec
Days:
Data Sun, Mon, Tues, Wed, Thurs, Fri, Sat

Restore Month

Would cause the next read statement to read data of the months while:

Restore Days

Would cause the next read statement to read the days of the week.

Read day$

Note is a case of mixed values the variable type would interpret the statement correctly.
DATA 3.14159 would be interpreted as a string if "read A$" is used while it is a number if "read A" is used.

Dale

Post Reply