Search found 1815 matches

by agamemnus
Jun 08, 2005 3:30
Forum: General
Topic: oh noes! ">=" is slower than ">"!
Replies: 13
Views: 5785

If it translates to the same number of instructions, why is one slower..

edit: so some catch thing predicts one way but might be wrong so it back tracks?
by agamemnus
Jun 08, 2005 0:53
Forum: General
Topic: oh noes! ">=" is slower than ">"!
Replies: 13
Views: 5785

oh noes! ">=" is slower than ">"!

Run vs. i% > j%.. that one is faster than i%>=j%!

Code: Select all

t1# = timer
for insane% = 1 to 10000000
for k% = 1 to 10
if i% >= j% then a% = 1
next k%
next insane%
t2# = timer

t3# = t2# - t1#
print t3#
sleep
by agamemnus
Jun 06, 2005 0:48
Forum: Beginners
Topic: AS ANY?
Replies: 14
Views: 6482

The preprocessor would go through the code and figure out which types are being used. (because they're static types... only static types could be used) Then it would replicate the functions with all the variations in use. What would it look like? Here's an example: DECLARE SUB qsort (blah(&#...
by agamemnus
Jun 05, 2005 23:31
Forum: Beginners
Topic: AS ANY?
Replies: 14
Views: 6482

I'm not talking about QB's use of AS ANY. I'm talking literally.

Tell me please how it becomes bloated when it's just a preprocessor command?
by agamemnus
Jun 05, 2005 14:40
Forum: Beginners
Topic: AS ANY?
Replies: 14
Views: 6482

Actually something that would be necessary for my program is to have a meta-definition of a variable as "AS ANY" and an associated name. I want to be able to define more than one variable with the same variable type.
by agamemnus
Jun 05, 2005 14:25
Forum: Beginners
Topic: AS ANY?
Replies: 14
Views: 6482

AS ANY?

Is there a way to specify a function parameter type as "as ANY", which would take any type of variable? (or, at least, fixed variable types?)
by agamemnus
Jun 03, 2005 17:42
Forum: General
Topic: string mismatch bug?
Replies: 3
Views: 2783

But this gives the same error. Is there some other way to do it? DECLARE SUB test1 (abc() AS STRING * 16) DIM sheep(1 TO 2) AS STRING * 16 sheep(1) = "Hello world! abc" test1 sheep() SLEEP SYSTEM SUB test1 (abc() AS STRING * 16) PRINT...
by agamemnus
Jun 03, 2005 15:30
Forum: General
Topic: string mismatch bug?
Replies: 3
Views: 2783

string mismatch bug?

Fixed length string arrays will error with a type mismatch in the compiler if they are passed to subs/functions that take string arrays. Is it a bug or am I doing something wrong? DECLARE SUB test1 (abc() AS STRING) DIM sheep(1 TO 2) AS STRING * 12 sheep(1) = "He...
by agamemnus
Jun 03, 2005 1:42
Forum: Beginners
Topic: another question. data overflow check.
Replies: 2
Views: 2798

Awesome.

Good stuff.
by agamemnus
Jun 02, 2005 23:37
Forum: Beginners
Topic: another question. data overflow check.
Replies: 2
Views: 2798

another question. data overflow check.

Is there a way to enable data overflow checking, either in the IDE or in the compiler? IE: a subscript out of range error.

EDIT: Also there doesn't seem to be any error checking.. I forgot to close a file and opened another with the same record number.. bam, weird poo happening...
by agamemnus
Jun 02, 2005 19:34
Forum: Beginners
Topic: help. two windows.
Replies: 9
Views: 5548

No, it still doesn't work...

I was able to get rid of it using a manual BAT file, but it does not work using the parameters in FBIde...

EDIT: Ok, I found the parameter area for compiling it, apparently it wasn't run>parameters...
by agamemnus
Jun 02, 2005 16:52
Forum: Beginners
Topic: help. two windows.
Replies: 9
Views: 5548

Ok. I guess it will force me to "be a better programmer"... that or make some sort of rewriting program to make it BYVAL... =\

That still leaves my other problem unanswered....
by agamemnus
Jun 02, 2005 14:52
Forum: Beginners
Topic: help. two windows.
Replies: 9
Views: 5548

thanks cha0s. It's still there if I change the screen mode though. How do I fix that? And what is it for anyway? Debugging?

I really this the parentheses should be allowable... I don't understand why not to add it if there are no ambiguity issues.
by agamemnus
Jun 02, 2005 5:01
Forum: Beginners
Topic: help. two windows.
Replies: 9
Views: 5548

One more thing.

"Use of parenthesis in the arguments passed to a function to emulate by-value passing is not permitted. The proper BYVAL and BYREF keywords must be used. "

Why is this the case? What is the ambiguity...? :(
by agamemnus
Jun 02, 2005 4:51
Forum: Beginners
Topic: help. two windows.
Replies: 9
Views: 5548

help. two windows.

Alright, I'm using SJ Zero's intro tutorial, but I can't get the actual working window to maximize with ALT+ENTER, just the dummy window. The setup is this when I run a program: I have 2 DOS windows open. One is just freebasic, blank. The other is freebasic, with the program. Is this normal? [my ver...

Go to advanced search