Search found 8896 matches

by fxm
May 24, 2019 16:45
Forum: General
Topic: Continuing issue using pointers etc...
Replies: 40
Views: 1634

Re: Continuing issue using pointers etc...

About: See the bug report: #811 *(ptr).field should give an error (Operator Precedence) It seems that a similar parsing bug also exists for the pointers to procedure pointer: Precedence rule between: ' () : procedure call' and: ' * : value of' is not verified. Simple ...
by fxm
May 24, 2019 5:27
Forum: Documentation
Topic: Wiki improvements
Replies: 293
Views: 21185

Re: Wiki improvements

Done:
KeyPgOpLetlist → fxm [Added the inheritance case (description + example)]
by fxm
May 23, 2019 22:00
Forum: Community Discussion
Topic: New array features
Replies: 55
Views: 1874

Re: New array features

Code: Select all

#define sort_along(a) Cptr(any ptr, Cptr(uinteger Ptr, Cast(Function(() As Typeof(a)) As any Ptr, @array_.array_get_ptr_)(a())))
See #889 Complex/compact syntax unsupported by gcc (except with compile option -exx)
by fxm
May 23, 2019 21:30
Forum: General
Topic: Memory access ?
Replies: 3
Views: 68

Re: Memory access ?

'Fre' returns the memory size allocated by the OS at the call time. This size is dynamically readjusted by the OS during program execution.
For fbc 32-bit, maximum allocated memory size < 2 GB.
For fbc 64-bit, maximum allocated memory size < virtual memory.
by fxm
May 23, 2019 21:08
Forum: General
Topic: Len() can't be 'overloaded'
Replies: 13
Views: 286

Re: Len() can't be 'overloaded'

Code: Select all

Type Vector
  Dim As Integer x, y
  Declare Operator Len () As Uinteger
End Type
    FBIDETEMP.bas(3) error 153: Operator cannot be a member function (TODO), before '(' in 'Declare Operator Len () As Uinteger'
by fxm
May 23, 2019 19:42
Forum: General
Topic: Len() can't be 'overloaded'
Replies: 13
Views: 286

Re: Len() can't be 'overloaded'

In documentation, I don't see any error message with "TODO".
Can you precise?
by fxm
May 23, 2019 15:51
Forum: General
Topic: Len() can't be 'overloaded'
Replies: 13
Views: 286

Re: Len() can't be 'overloaded'

1) It's not my fault if your text and your example are not full consistent. I made the choice to privilege the example (you can not blame me!). 2) The 'Len()' operator is not a member operator but an unary operator (not declared inside the Type). Therefore, the return value is not di...
by fxm
May 23, 2019 14:46
Forum: General
Topic: Len() can't be 'overloaded'
Replies: 13
Views: 286

Re: Len() can't be 'overloaded'

It is not the problem of 'Len()' , because if an other name is used ( '_Len()' for example), there is the same behavior: - the 2nd and 3th functions cannot be overloaded because they have the same parameter type (the return type of a function is not taken into account...
by fxm
May 23, 2019 4:53
Forum: Windows
Topic: How to use correct Common Shared syntax?
Replies: 17
Views: 392

Re: How to use correct Common Shared syntax?

I can't get the common examples from the FreeBasic help document to compile. I get an error trying to compile it and I also noticed there is no #include to link the example *.bas files in the help document. More simply (without make a library), if you compile these 2 modules like: fbc common1.bas c...
by fxm
May 22, 2019 21:34
Forum: Windows
Topic: How to use correct Common Shared syntax?
Replies: 17
Views: 392

Re: How to use correct Common Shared syntax?

It would be best to dispense with global variables.
by fxm
May 22, 2019 21:10
Forum: Windows
Topic: How to use correct Common Shared syntax?
Replies: 17
Views: 392

Re: How to use correct Common Shared syntax?

I prefer this following:

Commontest.bas

Code: Select all

#include "test2.bas"

ival = 10
print mytest(23)
sleep

test2.bas

Code: Select all

dim shared ival  as long

function mytest(inval as long) as long
   
   function  = inval * ival
end function
by fxm
May 22, 2019 17:39
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 967

Re: Wiindows 10

1809 update:
i7-7500U (2.9GHz), 6GB, HDD 930GB
about 4 hours not counting the download time (only installation + reboot)
by fxm
May 22, 2019 14:16
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 967

Re: Wiindows 10

Example for the previous feature update version 1809: How long does the Windows 10 October 2018 update (version 1809) take to install? The biggest factor affecting the length of time it takes to install Windows 10 is whether the drive is an SSD (solid state drive) or HDD (hard disk drive). Installat...
by fxm
May 22, 2019 12:49
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 967

Re: Wiindows 10

Less than one hour total, for such the full feature update, seems very short for a HDD disk.
by fxm
May 22, 2019 11:03
Forum: Community Discussion
Topic: Wiindows 10
Replies: 24
Views: 967

Re: Wiindows 10

Are you sure is was the big revision of windows 10 version 1809 => 1903, because this morning just before, there was a normal Windows update for 1809 (KB4497934), the last update before the big (1809 => 1903) I spoke (maybe not everyone is eligible yet).

Go to advanced search