cxflag203 / superobject

Automatically exported from code.google.com/p/superobject
0 stars 0 forks source link

SuperObjects to XE5 Android and IOS #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, is there any way to remove the use of DLLs and SO libraries in SuperObjects 
to make it portable to XE5 Android and IOS Apps? 

Regards, 

Al

Original issue reported on code.google.com by fon...@gmail.com on 25 Oct 2013 at 9:45

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/x-superobject/

Support ( WinX, OS X, Mobile)

Original comment by onryld...@gmail.com on 30 Oct 2013 at 7:55

GoogleCodeExporter commented 9 years ago
Tried xsuperbobject, got 40 compile errors on original superobject code.

Like:
    for JSI in JSO['appz'].AsObject.GetNames do begin

doesn't compile for example.

Any fix/patch for superobject yet?

Original comment by L...@LMeijer.nl on 5 Nov 2013 at 7:21

GoogleCodeExporter commented 9 years ago
try https://bitbucket.org/hovadur/superobject

Original comment by hova...@gmail.com on 5 Feb 2014 at 3:07

GoogleCodeExporter commented 9 years ago
Hi,

I tried the bitbucket.org superobject.pas file, but when I add it to my project 
and try compile for Android, it is no different to any of the other variations 
of superobject.pas in this regard.

I get a compiler error at line 623:

https://bitbucket.org/hovadur/superobject/src/d25c7e38fd1b461e9edb4bf527ad374099
867555/superobject.pas?at=default

{.$if true}
    FO: record
      case TSuperType of   //line 623
        stBoolean: (c_boolean: boolean);
        stDouble: (c_double: double);
        stCurrency: (c_currency: Currency);
        stInt: (c_int: SuperInt);
        stObject: (c_object: TSuperTableString);
        stArray: (c_array: TSuperArray);
{$IFDEF SUPER_METHOD}
        stMethod: (c_method: TSuperMethod);
{$ENDIF}
      end;
{.$ifend}

If I remove that bit of code, then I get another compiler error, about 
FormatSettings.DecimalSeparator not being recognised.

There are hundreds more compiler errors after that.

I am using Delhi XE5.

Original comment by maya.mcl...@gmail.com on 7 Feb 2014 at 5:36

GoogleCodeExporter commented 9 years ago
https://code.google.com/p/x-superobject/ works.

I got a bit stuck with the file name now being Xsuportobject.pas, and there is 
no downloads section, you need to go to Source SVN trunk, then click the RAW 
link on the right to get the .pas file.

I also has to change my code a little, as there are no longer default 
properties, so I had to change to using .A for arrays, and .S for strings, 
instead of just .AsString. But it's simple enough if you look at their samples:

https://code.google.com/p/x-superobject/wiki/Sample

Original comment by maya.mcl...@gmail.com on 7 Feb 2014 at 6:47