[fpc-pascal] Translate C to Pascal

Lourival Mendes mendes.lourival at gmail.com
Wed Jul 30 22:37:31 CEST 2008


I would do something like this:


C
----------------------------
struct product {
  int weight;
  float price;
} ;

product apple;
-----------------------------

Pascal
----------------------------
Type
   product = record
      weight: Integer ;
      price: double;
    end;

Var
  apple: product ;
----------------------------

This is the reason that I do believe that is missing something on the code:

struct a;

Best Regards

Lourival Mendes

2008/7/30 Jilani Khaldi <jilani at cheapnet.it>:
> Gene Buckle wrote:
>>>
>>> How to translate this:
>>>
>>> struct a;
>
> a: pointer;
>
> --
> Jilani KHALDI
> ---------------------
> http://www.jkhaldi.eu
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list