Search found 9519 matches

by fxm
May 27, 2020 13:04
Forum: General
Topic: Need a help
Replies: 1
Views: 57

Re: Need a help

Two lines corrected (see documentation GET (File I/O) and RANDOM ): Dim FileNum as Integer Dim Count as LongInt Dim Char as String = " " '' The buffer used by Get# must be sized (one character in that case) Dim FileName as String Count = 0 FileNum = 1 Input "Input FileName: &q...
by fxm
May 25, 2020 15:56
Forum: General
Topic: C++ ABI Compatible?
Replies: 21
Views: 765

Re: C++ ABI Compatible?

The constructor does not fill in the vtable, because two instance of the same Type refer to the same vtable location in memory. The vtable is created once for each Type.
The constructor only fills in the vptr of the instance to point to the only vtable defined for its Type.
by fxm
May 25, 2020 14:29
Forum: General
Topic: C++ ABI Compatible?
Replies: 21
Views: 765

Re: C++ ABI Compatible?

I thought about it too, but I don't know whether to add this line ( 'declare virtual sub dummy_destructor' ) before or after 'declare virtual destructor' . This is why I also asked my last question: "Is the 'derived::~derived()' then properly called by 'delet...
by fxm
May 25, 2020 6:38
Forum: General
Topic: C++ ABI Compatible?
Replies: 21
Views: 765

Re: C++ ABI Compatible?

Could you test this hacking workaround (for test.bas)? ' ..... ' ..... dim z as base ptr = new derived cptr(any ptr ptr ptr, z)[0] += 1 '' Shifting by +1 step the vptr value of the instance z z->print z->show delete z sleep In addition, is the 'derived::~derived()' then properly call...
by fxm
May 25, 2020 5:53
Forum: General
Topic: C++ ABI Compatible?
Replies: 21
Views: 765

Re: C++ ABI Compatible?

FB inheritance polymorphism Mechanism under the hood for an instance of the Type 'derived' (the above example): vtbl (vtable) .----------------------. [-2]| reserved (0) | RTTI info Mangled Typename |----------------------| .-----------------------. .--------. Instance of derived [-1]| Ptr to RTTI ...
by fxm
May 21, 2020 17:59
Forum: General
Topic: Keywords in TYPEs
Replies: 1
Views: 156

Re: Keywords in TYPEs

Perhaps because the symbol name 'end' is also a keyword used to declare the structure itself, in the same way as 'type' and 'extends' also prohibited as names for member symbols.
by fxm
May 21, 2020 15:08
Forum: General
Topic: File I/O Issue - SOLVED
Replies: 11
Views: 239

Re: File I/O Issue - SOLVED

There is not specific documentation page for the usage of '.' (or '..' ) when used as syntax prefix to force the access to a duplicated symbol in the global namespace. Do not confuse with the member access operator '.' . A Type structure can be considered as a particular name...
by fxm
May 21, 2020 9:09
Forum: General
Topic: File I/O Issue - SOLVED
Replies: 11
Views: 239

Re: File I/O Issue

Do you have member procedures named 'get' in your 'i8surf' type? If so, try replacing all 'get #f, ...' with '.get #f, ...' in order to call the predefined 'get #' instruction outside the type, and not by default a member procedure 'get' (not matching).
by fxm
May 21, 2020 5:20
Forum: Beginners
Topic: Pointer To Pointer Question
Replies: 3
Views: 230

Re: Pointer To Pointer Question

Your code is not safe because there is no evidence that valid memory is allocated at 'p[1]' . 'dim as node ptr proot, ptail' does not necessarily always produce 2 contiguous allocations in memory, and even if this were the case, the allocation order (between 'proot' and '...
by fxm
May 19, 2020 7:10
Forum: Beginners
Topic: A$="123,45,1,89,22" how do I get column 4, which is 89?
Replies: 10
Views: 493

Re: A$="123,45,1,89,22" how do I get column 4, which is 89?

Maybe @pagetelegram was just looking for a simple and short code, in -lang qb. Example of code using recursion: #Lang "qb" '' useless if compiled with option -lang qb Function ExtractNthItem (Byref s As String, Byval n As Integer) As String Dim As Integer d d = Instr(s, ",") If n...
by fxm
May 12, 2020 8:54
Forum: General
Topic: Open File , While not EOF Do Something, Close File ....
Replies: 2
Views: 103

Re: Open File , While not EOF Do Something, Close File ....

You can use:
Seek [#]filenum, position
with position = 1
by fxm
May 12, 2020 6:57
Forum: General
Topic: Variable in code nulls / zeros...
Replies: 13
Views: 225

Re: Variable in code nulls / zeros...

Do you compile in '-lang deprecated' ? In the -lang fb and -lang deprecated dialects, variables declared inside compound block statements (For..Next, While..Wend, Do..Loop, If..Then, Select..End Select, With..End With, Scope..End Scope) have local working scopes, and are visible only within...
by fxm
May 11, 2020 14:07
Forum: General
Topic: Variable in code nulls / zeros...
Replies: 13
Views: 225

Re: Variable in code nulls / zeros...

Do you compile in '-lang deprecated' ? In the -lang fb and -lang deprecated dialects, variables declared inside compound block statements (For..Next, While..Wend, Do..Loop, If..Then, Select..End Select, With..End With, Scope..End Scope) have local working scopes, and are visible only within ...
by fxm
May 09, 2020 11:11
Forum: Documentation
Topic: Request : macro documentation improvement
Replies: 1
Views: 199

Re: Request : macro documentation improvement

OK.
I will do it.


[edit]
Done:
KeyPgPpmacro → fxm [Added 2 examples]
by fxm
May 05, 2020 8:19
Forum: Projects
Topic: New IDE:vfb(Visual Freebasic)Like vb6,vb7(Update 2020-04-30)
Replies: 50
Views: 1411

Re: New IDE:vfb(Visual Freebasic),Like vb6,vb7

So I too will wait for the full English translation to test it then.

Go to advanced search