string < and > doesn't work

General discussion about the Phantom Automation Language and related tools.

string < and > doesn't work

Postby CashCow on Thu Jul 19, 2012 2:38 pm

Try:

disp("A" < "B" );
disp( "14" < "32" );
disp( "32" < "14" );
disp( "14" > "32" );
disp( "32" > "14" );

as examples...

We found a workaround, by the way, by doing

dll strcmp( CRTDLL, "strcmp", false, int, string s1, string s2);

thus "pulling" strcmp into Phantom as a function and using it instead.

Incidientally your documentation does not say anywhere how the memory is managed for DLL functions that return strings, although you have specified that it can return them.
CashCow
 
Posts: 5
Joined: Wed Jul 04, 2012 9:07 am

Return to Phantom

Who is online

Users browsing this forum: No registered users and 4 guests

cron