Hello all...
I was thinking about what sort of things I would like to see in the next release of PBDLL and I came up with the following...
1. make MKWRD$/MKDWD$ and all other variants act more like CHR$. Here is an example: CHR$(23,65,2), MKWRD$(32767,2048,257). This makes for cleaner looking code.
2. make CVWRD and all other variants act more like ASC. Here is another example: n = ASC(buffer$, 3), n = CVWRD(buffer$, 8). This would also make cleaner looking code and more flexability.
3. Allow for user defined variable type like #USERVAR MYBYTE = BYTE. This will allow us to change a variable type for the whole scope of the program with one line. This also allows variable types like HWND, WPARAM, LPARAM, LPSTR.
4. I suppose that having functions inside a TYPE would be out of the question right now, but still, I think it would be cool. It would provide better organization of functions and variables.
5. Floating point constants would really be handy. %PI = 3.14159
6. I understand that this next request might be the rope that hangs me but what the heck. Being able to turn off DDT and TCP/UDP/IP functions with compiler switches so that we can once again make use of the reserved words. Or...
7. Maybe make the variable and function naming more flexable so that we can still make a function called "SEND" or DIM a variable with a reserved word. Nothing bugs me more than wanting to use a name for a function or variable and not being able to use it. DATA being the one I run into the most...
8. Possibly could we swap "CALLBACK FUNCTION" with "FUNCTION CALLBACK". I just think it would make things a bit cleaner to look at.
9. I dont know how to explain this one so I'll just make an example of what I mean. DIM VARIABLE = 256 AS WORD, DIM VARIABLE = "PowerBasic" AS STRING...
TYPE MYVAR
A AS WORD
B AS WORD
END TYPE
DIM VARIABLE = (25,32) as MYVAR
I hope I haven't made anybody at PowerBasic angry with this message. These are just little ideas that keep poping up with the compiler that I would love to see. I would go as far as saying "I would sign a lifetime contract stating that If the above changes were implimented, I would most definitly commit to purchasing every new compiler that PowerBasic would make!". I probably will anyway but I thought saying that would give me some leverage (smile)...
Cheers! to a wonderfull product and staff...
I was thinking about what sort of things I would like to see in the next release of PBDLL and I came up with the following...
1. make MKWRD$/MKDWD$ and all other variants act more like CHR$. Here is an example: CHR$(23,65,2), MKWRD$(32767,2048,257). This makes for cleaner looking code.
2. make CVWRD and all other variants act more like ASC. Here is another example: n = ASC(buffer$, 3), n = CVWRD(buffer$, 8). This would also make cleaner looking code and more flexability.
3. Allow for user defined variable type like #USERVAR MYBYTE = BYTE. This will allow us to change a variable type for the whole scope of the program with one line. This also allows variable types like HWND, WPARAM, LPARAM, LPSTR.
4. I suppose that having functions inside a TYPE would be out of the question right now, but still, I think it would be cool. It would provide better organization of functions and variables.
5. Floating point constants would really be handy. %PI = 3.14159
6. I understand that this next request might be the rope that hangs me but what the heck. Being able to turn off DDT and TCP/UDP/IP functions with compiler switches so that we can once again make use of the reserved words. Or...
7. Maybe make the variable and function naming more flexable so that we can still make a function called "SEND" or DIM a variable with a reserved word. Nothing bugs me more than wanting to use a name for a function or variable and not being able to use it. DATA being the one I run into the most...
8. Possibly could we swap "CALLBACK FUNCTION" with "FUNCTION CALLBACK". I just think it would make things a bit cleaner to look at.
9. I dont know how to explain this one so I'll just make an example of what I mean. DIM VARIABLE = 256 AS WORD, DIM VARIABLE = "PowerBasic" AS STRING...
TYPE MYVAR
A AS WORD
B AS WORD
END TYPE
DIM VARIABLE = (25,32) as MYVAR
I hope I haven't made anybody at PowerBasic angry with this message. These are just little ideas that keep poping up with the compiler that I would love to see. I would go as far as saying "I would sign a lifetime contract stating that If the above changes were implimented, I would most definitly commit to purchasing every new compiler that PowerBasic would make!". I probably will anyway but I thought saying that would give me some leverage (smile)...
Cheers! to a wonderfull product and staff...
Comment