Search found 3258 matches

by coderJeff
Feb 28, 2024 2:11
Forum: General
Topic: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals
Replies: 10
Views: 1004

Re: 'Procptr' now supports member procedures/operators as well as their indexing in vtable for virtuals

'Procptr (member procedure address)' could support a non-member overload operators by using as second argument the user operator signature, in order to resolve the operator overload. Is such a complement expected in the short term ? In the short term, probably can be achieved because it looks to be...
by coderJeff
Feb 27, 2024 23:24
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

Fundamentally the point of a string is to convey information to a human being. Not to a machine or algorithm? What about control characters and escape sequences? Is not 'zero terminated sequence of bytes' also a kind of format that the the producer and consumer need to agree on? Anyway, going back ...
by coderJeff
Feb 27, 2024 10:14
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

The only thing I immediately disagree with is the idea that I would slink off. Pretty sure I consistently own up to all my failures. Why? - I think I need to do this first Who is this for? - Me, and hopefully others find it useful. At the moment unfinished existing STRING*N feels like it is in my wa...
by coderJeff
Feb 27, 2024 0:01
Forum: Documentation
Topic: External Graphics File Formats (page to fill in Programmer's Guide)
Replies: 12
Views: 2874

Re: External Graphics File Formats (page to fill in Programmer's Guide)

So top down images (with negative height) ARE supported ? :D ha, I did not know. Turns out yes, negative height flips the image. ( I really was hoping for someone to dig through this. I don't even know what is common or normal with this format) RLE not supported though. So only uncompressed formats.
by coderJeff
Feb 26, 2024 23:21
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

I have a question: would the null terminator byte be removed only in fixed length strings inside an user defined type, or in all fixed length strings? It would make a difference in case of arrays of fixed length strings (and it would allow to create unions of byte arrays and fixed length strings ar...
by coderJeff
Feb 26, 2024 23:14
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

Another question: will be possible to use null bytes inside a fixed length string? There are currently several inconsistencies with embedded null bytes depending on type or literal string and if the expression is constant folded at compile time or evaluated at run time. My goal would be to have STR...
by coderJeff
Feb 26, 2024 23:10
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

Another question: will be possible to use null bytes inside a fixed length string? This would not make any sense as there is no corresponding character to the null (0) byte. Not for printing but still as a null terminator -- in a list of null terminated strings. On windows, REG_MULTI_SZ comes to mi...
by coderJeff
Feb 26, 2024 8:35
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

There is no support for pointers to fixed length strings. This reminds me of an issue: BYREF/typedefs allow pointers to [Z/W]STRING * N If the data type info were fully tracked (which within the compiler it is currently not), then: - pointer to 'STRING*N' should be 'STRING*N ptr' - pointer to Z'STR...
by coderJeff
Feb 25, 2024 19:41
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

To change STRING* at this stage is probably going to break a lot of code, although the change you suggest will make it easier to convert QBASIC / GWBASIC programs to Freebasic. [/code] Yes probably going to break some code, but how much I wonder?. fbc sources don't use it. I don't use it. And it's ...
by coderJeff
Feb 25, 2024 15:23
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

Past month I have been looking in to fb's string datatypes and trying to really get an understanding of where the deficiencies are. And by deficiencies I mean with what we already have, not about missing string types / features. Things like string allocation, temporary string management, safe string...
by coderJeff
Feb 25, 2024 14:46
Forum: Documentation
Topic: External Graphics File Formats (page to fill in Programmer's Guide)
Replies: 12
Views: 2874

Re: External Graphics File Formats (page to fill in Programmer's Guide)

Here is a rough starting point, though many bits still to add in... Files used with BLOAD/BSAVE First byte of file: &hFD QB BSAVED BLOCK &hFE FB BSAVED BLOCK &h42 Windows Bitmap (&h42 = ASC("B")) For the QB/FB saved block, &hFD and &hFE identify the file as a QB/FB ...
by coderJeff
Feb 02, 2024 12:19
Forum: Community Discussion
Topic: Freebasic 1.20.0 Development
Replies: 269
Views: 24588

Re: Freebasic 1.20.0 Development

In my opinion, the fbcFindBin function needs to be changed to find this file. You could try building and using a "normal" build of fbc instead of "standalone" See Normal Vs Standalone "normal": where fbc is located in <fbc-root>/bin/fbc.exe "standalone": wher...
by coderJeff
Jan 28, 2024 22:39
Forum: General
Topic: Mangling namespace std
Replies: 3
Views: 389

Re: Mangling namespace std

freebasic does not reserve "std" for any special use, and there's no support for the std namespace mangling rules But if std c++ name mangling were added, I would probably do like this for syntax: extern "c++" namespace std alias "::std::" '' declarations end namespace ...
by coderJeff
Jan 28, 2024 21:41
Forum: Documentation
Topic: Wiki improvements
Replies: 764
Views: 287752

Re: Wiki improvements

First, There are some changes for error messages. I have not updated the wiki yet; I will do it in the near future. I will keep in mind to review instructions for installing toolchains ... another day. For SGN: - '-gen clang' and '-gen llvm' generate same results as '-gen gcc' - but with most users ...
by coderJeff
Jan 12, 2024 12:50
Forum: General
Topic: [Solved] When/how is a temporary array descriptor created
Replies: 10
Views: 748

Re: [Solved] When/how is a temporary array descriptor created

I will check a couple of things, but should be: - An implicit array descriptor is allocated for each instance where a fixed size array is passed as an argument. - An implicit array descriptor should be valid until the end of the scope where it is created. Therefore, not just the last call, but it do...