Search found 1714 matches

by coderJeff
Aug 17, 2018 0:53
Forum: Community Discussion
Topic: programming for fun
Replies: 38
Views: 1271

Re: programming for fun

For a topic with such a rough start, this thread is actually a really nice read... - as kid/teen loved to program - university for mechincal engineering, a small programming component - first real job, programming mech eng software - then, self-employed programmer for 10+ years - writing yet another...
by coderJeff
Aug 16, 2018 21:13
Forum: Community Discussion
Topic: What happened to the Emscripten branch?
Replies: 1
Views: 66

Re: What happened to the Emscripten branch?

The original is still there at https://github.com/freebasic/fbc/tree/emscripten and every once and a while, I merge the master branch in to emscripten and push it to my own fork on https://github.com/jayrm/fbc/tree/emscripten It looks really cool, and I want to try it, but I haven't had a chance to ...
by coderJeff
Aug 16, 2018 21:08
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6782

Re: Wiki improvements

But I may be wrong on that ... I don't think you are wrong. It's a good point. I think either perspective is valid. If a programmer was familiar with PHP or LISP, the reverse might be a better approach. They probably already have good understanding of references, and could explain pointers in terms...
by coderJeff
Aug 16, 2018 21:01
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2148

Re: Delete vs. Delete[]

thanks fxm. OK, I undersrand, expectation is that 1) allocating a memory location with a capacity of zero (0) bytes should be failure, and return NULL pointer. 2) consistency between [c]allocate and new I investigated and here's what's happening currently: 3) I need to study more, but I think the im...
by coderJeff
Aug 16, 2018 14:37
Forum: Community Discussion
Topic: Is there a TODO list for Freebasic
Replies: 1
Views: 59

Re: Is there a TODO list for Freebasic

Compiler TODO list: https://sourceforge.net/p/fbc/code/ci/master/tree/todo.txt https://github.com/freebasic/fbc/blob/master/todo.txt fbc Unit Testing Module TODO list: https://sourceforge.net/p/fbc/code/ci/master/tree/tests/fbcunit/todo.txt https://github.com/freebasic/fbc/blob/master/tests/fbcunit/...
by coderJeff
Aug 16, 2018 14:29
Forum: General
Topic: Delete vs. Delete[]
Replies: 20
Views: 2148

Re: Delete vs. Delete[]

I had a quick look and seems like similar issue, so could probably just re-open the ticket.

Separate from what it is currently doing, what is the expected behaviour? Count <0, =0, >0?
by coderJeff
Aug 16, 2018 14:02
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6782

Re: Wiki improvements

Main issue is: the permanent reference to "reference operator *" , which is in fact "dereference operator *" ! Sorry to state but, that sort of thing is "very confusing", to say the least! (Especially for beginners, which it is clearly aimed at. Should be replaced, IMO...
by coderJeff
Aug 15, 2018 21:32
Forum: Documentation
Topic: How FB supports References (pass and return byref, byref variables), and How to Use them
Replies: 6
Views: 273

Re: How FB supports References (pass and return byref, byref variables), and How to Use them

Is it possible to discuss references without discussing pointers? That depends. If you only want to know how to use it , it's enough to know that changing a paramter submitted BYREF will affect the value outside of the procedure, while the changes made to a BYVAL parameter are limited to the inside...
by coderJeff
Aug 15, 2018 20:46
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 79
Views: 9788

Re: Dim Byref syntax

Since last post in this topic on Jun 22, I have been working on bugs related to the closed #842, which kind of started it all. My efforts are currently in pull request 90 . I've made my way through the following: #642 Pointer casting allows constness dropping #886 Inconsistent error with BYREF and C...
by coderJeff
Aug 14, 2018 21:20
Forum: Windows
Topic: After Ctl+Alt+Delete is pressed, continous Alt key is sent
Replies: 6
Views: 183

Re: After Ctl+Alt+Delete is pressed, continous Alt key is sent

Same behaviour with win7. On windows, MULTIKEY is really just a call to short GetAsyncKeyState(int vkey). There's no magic; it's as close to the WIN API as you can get. It appears that ALT key gets "stuck", if ctrl+alt+delete is followed by Task Manager, or Lock This Computer. And not a pr...
by coderJeff
Aug 14, 2018 20:02
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6782

Re: Wiki improvements

Hmm. No documentation at all? I dunno. If we wrote the documentation when the feature was added, we would have both documentation and a bug report. And at least we would have an expectation of what the feature should do.
by coderJeff
Aug 14, 2018 19:45
Forum: Tips and Tricks
Topic: Rect_t - optimized type definition
Replies: 35
Views: 738

Re: Rect_t - optimized type definition

1) In the first example, a nit-pick. From the compiler's point of view, alignment will be a power of 2. Like 1, 2, 4, 8, ... etc. The compiler will add internal padding or trailing padding to the structure to satisfy the alignment. i.e. a structure size of 40 bytes satisfies an alignment of 8. 2) Wa...
by coderJeff
Aug 14, 2018 15:44
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6782

Re: Wiki improvements

I think I got another addition. There seems to be no .. page. Don't know if it has a name. Indeed. To compare, in C++ there is '::' scope resolution operator, and '.' member access operator. In fbc we use '.' (dot) operator for both, for example: namespace N1 dim X as integer end namespace namespac...
by coderJeff
Aug 13, 2018 4:59
Forum: Documentation
Topic: Wiki improvements
Replies: 193
Views: 6782

Re: Wiki improvements

fxm, I think you did a great job with the article. Very good explanations. I think you did well explaining difference between reference and pointer. I've read many bad explanations that make references sound like they are same as pointers. And they are not the same thing at all, but, because of the ...
by coderJeff
Aug 01, 2018 1:32
Forum: General
Topic: Simplistic copy for dynamic array fields when assigning between UDT instances
Replies: 28
Views: 747

Re: Weird assignment between two UDT instances each containing a dynamic array of equal large size

fxm wrote:When both arrays have the same total size, the reallocation/resizing of the destination array is useless.

Only if the the array is of an element type that has no constructor, destructor, copy operators, etc, for itself or in any of it's members.

Go to advanced search