[futurebasic] Re: [FB] functions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2012 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Wed, 4 Apr 2012 13:17:12 -0700
On Apr 4, 2012, at 12:19 PM, Ted Spencer wrote:

> Thanks all around! What a crew you are!

Congrats! One suggestion:

Consider using _"9" instead of asc("9") ( see 'ASC' page in FBHelp ) for speed.

For proof consider:

dim as SInt32 x

x = asc("9")
generates:   x = PSasc( PSstrcpy( STACK_PUSH, "\p9" ) ); // 2 function calls and a lot of code 

while
x = _"9"
generates: x = (unsigned char)'9';


Brian S.