Search found 7877 matches

by fxm
May 23, 2018 5:22
Forum: General
Topic: What does imagedestroy do?
Replies: 9
Views: 224

Re: What does imagedestroy do?

Before talking about updating the documentation, we must first decide if it is a bug or not (about return value of imageinfo ()).
If it's a bug, then fill in a bug report.
If it is not a bug but the expected operating, then only update the documentation.
by fxm
May 22, 2018 21:52
Forum: General
Topic: Base destructor cannot be overridden
Replies: 12
Views: 209

Re: Base destructor cannot be overridden

@dodicat, Assigning a down-casted base object to a derived object is unsafe (because of accessing to not allocated memory behind the base object to initialize the specific fields of derived object). Only a base type reference pointing to a derived type object can be safely down-casted. The better is...
by fxm
May 22, 2018 9:01
Forum: Documentation
Topic: Wiki improvements
Replies: 97
Views: 3247

Re: Wiki improvements

fxm wrote:Now to others also to provide or point texts for articles.
or at least to plebiscite article topics :-)
by fxm
May 22, 2018 5:27
Forum: General
Topic: Base destructor cannot be overridden
Replies: 12
Views: 209

Re: Base destructor cannot be overridden

The semantics for virtual destructor is different from "normal" virtual procedures. You never really override a destructor because virtual destructors remain "chained" (the base destructors will always be called, so not really overridden). But putting the attribute 'override' on ...
by fxm
May 21, 2018 21:53
Forum: Documentation
Topic: Wiki improvements
Replies: 97
Views: 3247

Re: Wiki improvements

Good idea.
Done it.
by fxm
May 21, 2018 13:04
Forum: Documentation
Topic: Wiki improvements
Replies: 97
Views: 3247

Re: Wiki improvements

Phew, the post is out, some rest !
Now to others also to provide or point texts for articles.
by fxm
May 21, 2018 12:51
Forum: Documentation
Topic: How and why to define constructors, assignment-operators, and a destructor for UDTs in FB
Replies: 0
Views: 52

How and why to define constructors, assignment-operators, and a destructor for UDTs in FB

Some member procedures, which have a predefined name in the Type, have a specific role that is constructing, assigning, and destroying objects. These are the constructors, the assignment-operators, and the destructor. Of these, some are special because a version will be automatically built by the co...
by fxm
May 21, 2018 8:30
Forum: General
Topic: What does imagedestroy do?
Replies: 9
Views: 224

Re: What does imagedestroy do?

I think ImageDestroy just deals with memory deallocation, but without first modifying its contents.
by fxm
May 21, 2018 8:12
Forum: General
Topic: Base destructor cannot be overridden
Replies: 12
Views: 209

Re: Base destructor cannot be overridden

Shouldn't that statement be "derived types do inherit constructors and destructors? No, it's not inheritance. It's just chaining of the destructors, from the most derived Type to the up. So all that this does is change the order of the calls to the destructors. Instead of base followed by deri...
by fxm
May 21, 2018 5:46
Forum: General
Topic: Base destructor cannot be overridden
Replies: 12
Views: 209

Re: Base destructor cannot be overridden

Derived Types do not inherit the constructors or destructors from their base Types (true in all languages). Besides, what would be the purpose of not destroying the based part of an object? Putting the base destructors as virtual allows to always call the most derived destructor, even from a base ty...
by fxm
May 19, 2018 20:56
Forum: Documentation
Topic: Wiki improvements
Replies: 97
Views: 3247

Re: Wiki improvements

How/Why to Define Constructors, Destructor, Copy-Constructor, Assignment-Operator in FB UDT (article)

In progress.
The subject is not easy to present in a concise article but still quite complete.
First output probably during next week.
by fxm
May 19, 2018 14:52
Forum: Tips and Tricks
Topic: Dictionary Class
Replies: 105
Views: 2571

Re: Dictionary Class

For more safety, I would have put everywhere a definition (even empty) for each declaration.
by fxm
May 19, 2018 14:20
Forum: Tips and Tricks
Topic: Dictionary Class
Replies: 105
Views: 2571

Re: Dictionary Class

May be the gcc optimization removes some unused code (calling the let operator), but which would have caused this error (undefined Let operator call).
For example the copy-constructor / let-operator generated by the compiler ?
by fxm
May 19, 2018 14:14
Forum: Tips and Tricks
Topic: Dictionary Class
Replies: 105
Views: 2571

Re: Dictionary Class

I found:
-Wc -Ofast

with:
-Wc -O0
or no gcc option,
the error appears !
by fxm
May 19, 2018 14:00
Forum: Tips and Tricks
Topic: Dictionary Class
Replies: 105
Views: 2571

Re: Dictionary Class

Have you specific compile options when you are testing these very simple codes ?

Go to advanced search