Search found 5878 matches

by dodicat
Aug 27, 2019 16:35
Forum: General
Topic: view clipping for imagecreate feature request
Replies: 4
Views: 322

Re: view clipping for imagecreate feature request

It can be done to custom in a few lines anyway with the available image functions. screen 20,32 dim as any ptr i=imagecreate(300,300,rgb(0,100,255)) #macro viewimage(i,limits,x,y,method) scope dim as integer w,h imageinfo i,w,h dim as any ptr tmp=imagecreate(w,h) get i,limits,tmp put((x),(y)),tmp,me...
by dodicat
Aug 25, 2019 21:43
Forum: Documentation
Topic: TYPEOF() changes, or something new?
Replies: 5
Views: 383

Re: TYPEOF() changes, or something new?

Barring print typeof(aa) Which would have to be listed as per help file (#if typeof() = bla bla bla) The other request could be answered by a macro. (That is your question 1 only) Dim As Integer aa Dim As String bb Dim As Integer Ptr ppi Dim As String Ptr pps aa = 1 bb = "l" ppi = @aa pps ...
by dodicat
Aug 25, 2019 17:25
Forum: Community Discussion
Topic: Print Screen Command?
Replies: 3
Views: 911

Re: Print Screen Command?

I found this code. press the Print Screen key. or Alt + Print Screen if you want only a window printed. your image is now on the clipboard. Now run this code to view it and print it. CONST w = 800 CONST _h = 600 #INCLUDE "fbgfx.bi" #INCLUDE ONCE "windows.bi" DECLARE FUNCTION get_...
by dodicat
Aug 25, 2019 10:57
Forum: Documentation
Topic: Wiki improvements
Replies: 352
Views: 35824

Re: Wiki improvements

Scientific Linux (=Red Hat Linux) 32 bits. Lifetimes comparison between local/static variables declared in a local scope: From inside the procedure scope: 3217155828 'local variable' 134533612 'static variable' From outside the procedure scope: 3217155828 ' ���J�' 134533612 'static variable'
by dodicat
Aug 25, 2019 10:03
Forum: General
Topic: Squares
Replies: 6887
Views: 403878

Re: Squares

The Peter Principle only mentions promotion.
It has completely missed the concept of demotion, and the fact that promotion in the demotion direction acts faster than the other way round, so there is no need to be incompetent for long.
by dodicat
Aug 23, 2019 17:20
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5945

Re: Array Descriptor (split from Wiki Improvements)

I have updated my RUNTIME tester for arrays (OK now with -O optimisations if they are used) Gives the array pointer @a(lbound(a,1),lbound(a,2) . . . ). And reports if the array is static or dynamic. If in error it sleeps and reports ERROR. #macro __Arrayptr__(array) Iif(Ubound(array,0)=1,@array(Lbou...
by dodicat
Aug 21, 2019 18:01
Forum: General
Topic: Squares
Replies: 6887
Views: 403878

Re: Event Horizon

Jupiterish. type ball x as single 'position x component y as single 'position y component dx as single 'velocity x component dy as single 'velocity y component col as uLong 'colour as Long r,m 'radius, mass end type dim shared as any ptr row dim shared as integer pitch dim shared as integer xres,yre...
by dodicat
Aug 21, 2019 10:17
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5945

Re: Array Descriptor (split from Wiki Improvements)

With -gen gas you can undefine a variable then re define it again. For example you could undefine an array with one dimension then redefine it again with two dimensions. But not with -gen gcc Same goes for a simple variable. However you can still undefine a label then re-define it again with -gen gc...
by dodicat
Aug 20, 2019 13:07
Forum: Tips and Tricks
Topic: StringArray Sort (case independent)
Replies: 87
Views: 7689

Re: StringArray Sort (case independent)

jj2007. With avira I scaned your .exe files while still compressed. I scanned them uncompressed. I checked them with nm.exe to see your functions, but you have them stripped of all symbols. Avira still quarantined MbsortText.exe when I dragged a text file on it. HEUR/APC was the name of the offender...
by dodicat
Aug 20, 2019 12:08
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5945

Re: Array Descriptor (split from Wiki Improvements)

I think that when using -Wc -O3, the functions in my snippet are inlined into the scope block and the byref parameter is assigned an address on the heap. Thus causing local confusion and the wrong answer.
(Only a guess)
by dodicat
Aug 19, 2019 23:48
Forum: Documentation
Topic: Array Descriptor (split from Wiki Improvements)
Replies: 121
Views: 5945

Re: Array Descriptor (split from Wiki Improvements)

Kinda crude array pointer and dynamic tester. The dynamic tester fails with -O optimisations. #macro __Arrayptr__(array) Iif(Ubound(array,0)=1,@array(Lbound(array)), _ Iif(Ubound(array,0)=2,@array(Lbound(array,1),Lbound(array,2)), _ Iif(Ubound(array,0)=3,@array(Lbound(array,1),Lbound(array,2),Lbound...
by dodicat
Aug 19, 2019 21:55
Forum: General
Topic: Squares
Replies: 6887
Views: 403878

Re: Squares

In mathematics Analysis is the branch dealing with concepts. Maths is broken down into branches, calculus, co-ordinate geometry, numerical analyses . . . Most of it is used in an applied manner. A while back in the UK they decided to drop the times tables. Instead they decided to teach kids concepts...
by dodicat
Aug 19, 2019 9:27
Forum: Community Discussion
Topic: New array features
Replies: 130
Views: 12304

Re: New array features

OK array(sort, (l, NOCASE)) works. (Uppercase nocase) I get about .88 seconds for the sort and about .7 for the scan. My machine is obviously slower than yours. For the syntax_test_sort.bas I had to change all to uppercase. viz: '#COMPILER FREEBASIC '#compile console 32 exe /o "-pp -maxerr 10&q...
by dodicat
Aug 19, 2019 8:18
Forum: Game Dev
Topic: Physics question
Replies: 74
Views: 5791

Re: Physics question

Thanks for testing, basiccoder2 & badidea.
basiccoder2.
You can make a slightly bigger grave, line 221--Dim As Long roomforerror=10
You could make 15 or something.
But your tweak has been noted, and it would make sense in the real universe for a nice send off.
Thank you.
by dodicat
Aug 19, 2019 0:12
Forum: General
Topic: Squares
Replies: 6887
Views: 403878

Re: Squares

Hi Albert. I have been busy messing around with sorts. Dividing by zero is not allowed in maths because the answer is infinity. If you divide by nearly zero 1/.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 you get 100000000000000000000000000...

Go to advanced search