Recent Posts

Pages: 1 ... 8 9 [10]
91
General Discussion / Re: Basic Interpreter
« Last post by crcasey on November 15, 2016, 08:29:23 PM »
Also a quick question on assignment and pointers...

a=10
b=a
b=b+10

is a = 10 or is a=20 now?

How about with more complex types like arrays?

-Cecil
92
Feature Requests and Bug Reports / Re: Manual Error Reporting
« Last post by Vectrex32 on November 15, 2016, 08:27:59 PM »
Arrays that are no longer referenced by any variable or sprite are deallocated - the memory is freed.

- Bob
93
General Discussion / Re: Basic Interpreter
« Last post by crcasey on November 15, 2016, 08:27:27 PM »
Another question along this line...

Why keep = as both assignment and as an expression?

I find the C way of = being assignment and == being compare expression makes the code read more clearly.

-Cecil
94
Feature Requests and Bug Reports / Re: Manual Error Reporting
« Last post by crcasey on November 15, 2016, 08:23:54 PM »
If I am reading the manual correctly the initializer returns a handle(pointer) to the array, which can either then be stored in a variable as a handle, or be used directly as a function argument.  In the second case what happens to the array when the function ends?

Does each handle keep a record of objects tied to it so that garbage collection happens?

Or another case say you store the array handle in the variable asdf. 
Then you do asdf=nul.
What happens to the array data?

I guess I wonder how much program memory there is and what you have done for garbage collection?

-Cecil
95
Feature Requests and Bug Reports / Re: Manual Error Reporting
« Last post by Vectrex32 on November 15, 2016, 05:40:46 PM »
Yup, that's a mistake. Thanks for catching it.

- Bob
96
General Discussion / Re: Basic Interpreter
« Last post by Vectrex32 on November 15, 2016, 05:38:50 PM »
What is the reason that you have decided not to cast variable types, but allow any type to be changed at any time to a different type?

If I may state it a little more precisely: a variable can be set to any value of any type at any time.

I anguished for quite a while over whether I should use static or dynamic typing. I settled on dynamic partly because I thought it was easier for novice programmers, partly because it simplified my implementation, and partly because it let me re-initialize arrays - something I envisioned being useful when working with sprites.

- Bob
97
Feature Requests and Bug Reports / Manual Error Reporting
« Last post by crcasey on November 15, 2016, 05:27:00 PM »
I think that a line of code may have been left out of the first example of the manual section 2.7.1 on Array Initializers.

The comments do not match the statements in the first example block.

-Cecil
98
General Discussion / Re: Basic Interpreter
« Last post by crcasey on November 15, 2016, 05:13:52 PM »
What is the reason that you have decided not to cast variable types, but allow any type to be changed at any time to a different type?  IE why can an array be changed to a int with no warning.  It seems this makes it harder to find an accidental misassignment.

Not that this is a bug, or even wrong.  I just wondered what your thinking on this is.

-Cecil
99
Feature Requests and Bug Reports / Re: PCM audio playback. File reading. Animation.
« Last post by Vectrex32 on November 15, 2016, 08:10:28 AM »
I like this PlayPCM suggestion: I'll add it to my list of things to do.

There is no File I/O at this point. I've been thinking I should add it, if for no other reason than to let you store high scores for games.

Thank you,
  Bob
100
General Discussion / Forum for general AY3 sound tracks.
« Last post by crcasey on November 14, 2016, 11:38:15 PM »
This is more of a FYI for people wanting to understand AY3 sound tracks and what can be done with this chip series.

http://bulba.untergrund.net/main_e.htm

-Cecil
Pages: 1 ... 8 9 [10]