Search found 26 matches

by tejon
Tue Jan 05, 2016 9:24 pm
Forum: General Discussion
Topic: Interesting article on 32 bit vs. 64 bit Programs
Replies: 1
Views: 1418

Re: Interesting article on 32 bit vs. 64 bit Programs

I didn't read the whole article because it's classic bragging blog, by empirical testing using the gcc compiler 64-bit is almost always faster than 32-bit, obviously the programs are going to be bigger.
by tejon
Wed Dec 30, 2015 10:19 pm
Forum: Coding Questions
Topic: OpenLibrary() dose not work
Replies: 8
Views: 1485

Re: OpenLibrary() dose not work

if a.o is a 32-bit object then try the following
gcc -m32 -shared -o a.dylib a.o
by tejon
Wed Dec 30, 2015 6:55 pm
Forum: Coding Questions
Topic: OpenLibrary() dose not work
Replies: 8
Views: 1485

Re: OpenLibrary() dose not work

if that don't work you could try and make a dylib, copy the a.o file to some temp folder and then launch the terminal, cd to to the temp folder and issue the following command
gcc -shared -o a.dylib a.o
the reason for using gcc instead of ar is that gcc will try to find dependencies if any.
by tejon
Wed Dec 02, 2015 9:15 pm
Forum: General Discussion
Topic: Is SpiderBasic still alive/supported ?
Replies: 20
Views: 7391

Re: Is SpiderBasic still alive/supported ?

Fred is still supporting SpiderBasic, I just registered to the SpiderBasic Forum without problem, please check your spambox for confirmation email, you need to follow the link provided to activate your forum account.
by tejon
Thu May 20, 2004 3:25 am
Forum: Off Topic
Topic: Sphere xp
Replies: 6
Views: 2337

by tejon
Thu May 20, 2004 12:17 am
Forum: General Discussion
Topic: Strings and Memory
Replies: 4
Views: 1727

use memory buffers see viewtopic.php?t=7171
by tejon
Wed May 19, 2004 9:43 pm
Forum: General Discussion
Topic: Strings and Memory
Replies: 4
Views: 1727

maybe this could help viewtopic.php?t=6522
by tejon
Fri Feb 20, 2004 3:09 pm
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

..
by tejon
Tue Feb 17, 2004 11:18 pm
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

i am stumped, it compiles just fine on my machine.
does anyone else have problems compiling the updated routine :?:
by tejon
Tue Feb 17, 2004 9:58 pm
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

actually the manual states:

RSet()

Syntax

Result$ = RSet(String$, Length [, Character$])
Description

Pads a string to the right, and adds 'space' characters to fit the specified length. The optional 'Character$' parameter can be used to replace 'space' with another character. If the string is ...
by tejon
Mon Feb 16, 2004 5:57 pm
Forum: Coding Questions
Topic: FnEval() by Tejon
Replies: 3
Views: 1376

updated: now there's no need to have inline asm enabled,
also, the factorial function would return 0 for 0!, it's now fixed. 8)
by tejon
Sat Nov 01, 2003 9:26 pm
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

added logical operators <, <=, ==, <>, >=, >

operator returns 0 for false and 1 for true.


Procedure.s eval(exprn$)
; placed in the public domain by tejon
;
;since you can't have procedures or subroutines inside a procedure
;(even tried CallFunctionFast(?GosubLabel) without success)
;we ...
by tejon
Fri Oct 31, 2003 7:15 pm
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

it's public domain, do whatever you want with it. :mrgreen:
by tejon
Thu Oct 30, 2003 12:38 am
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

hi TronDoc, i realize there's not enough documentation.
to answer your question:
x$=eval("#pi/4") ;x$ now holds "7.85398163397448309e-1"
x$=eval("#e") ;x$ = "2.718281828459045"
x$=eval("a=(1/2)!") x$ = "8.86226925452758013e-1"
also "a" holds "8.86226925452758013e-1"
x$=eval("a^2*4") = "3 ...
by tejon
Sun Oct 26, 2003 8:11 pm
Forum: Tricks 'n' Tips
Topic: FnEval
Replies: 29
Views: 13199

FnEval

this is largely a cludge, but someone might find it useful.
feel free to to rip it appart and use in any way you want.
placed in the public domain by tejon.
save as: FnEval.pbi
Updated version follow below

no need to enable inline asm.
fixed factorial function, it would return 0 for 0! which ...