Zitat von Vinzent Höfler <[EMAIL PROTECTED]>:
> Mattias Gärtner wrote:
> > Zitat von Vinzent Höfler <[EMAIL PROTECTED]>:
> >
> >> [...]
> > a: record end;
> >>> Thanks. I will use that.
> >> What for? The C statement is empty, it's not a variable and not even a
> >> type. So before tran
Mattias Gärtner wrote:
Zitat von Vinzent Höfler <[EMAIL PROTECTED]>:
[...]
a: record end;
Thanks. I will use that.
What for? The C statement is empty, it's not a variable and not even a
type. So before translating that into an empty Pascal-record, you should
rather look at what the actual
Zitat von Vinzent Höfler <[EMAIL PROTECTED]>:
>[...]
> >>> a: record end;
> >
> > Thanks. I will use that.
>
> What for? The C statement is empty, it's not a variable and not even a
> type. So before translating that into an empty Pascal-record, you should
> rather look at what the actually use
Felipe Monteiro de Carvalho wrote:
On Wed, Aug 13, 2008 at 7:38 AM, Vinzent Höfler
<[EMAIL PROTECTED]> wrote:
What for? The C statement is empty, it's not a variable and not even a type.
So before translating that into an empty Pascal-record, you should rather
look at what the actually used stru
On Wed, Aug 13, 2008 at 7:38 AM, Vinzent Höfler
<[EMAIL PROTECTED]> wrote:
> What for? The C statement is empty, it's not a variable and not even a type.
> So before translating that into an empty Pascal-record, you should rather
> look at what the actually used structur in the C-code is.
It is us
Mattias Gaertner wrote:
On Tue, 12 Aug 2008 09:39:36 +0200
Jilani Khaldi <[EMAIL PROTECTED]> wrote:
Marc Weustink wrote:
Micha Nelissen wrote:
Mattias Gärtner wrote:
How to translate this:
struct a;
Isn't this a forward declaration? So sometime later it needs to
declare 'struct a { ... };'
On Tue, 12 Aug 2008 09:39:36 +0200
Jilani Khaldi <[EMAIL PROTECTED]> wrote:
> Marc Weustink wrote:
> > Micha Nelissen wrote:
> >> Mattias Gärtner wrote:
> >>> How to translate this:
> >>>
> >>> struct a;
> >>
> >> Isn't this a forward declaration? So sometime later it needs to
> >> declare 'struct
Marc Weustink wrote:
Micha Nelissen wrote:
Mattias Gärtner wrote:
How to translate this:
struct a;
Isn't this a forward declaration? So sometime later it needs to declare
'struct a { ... };' ?
If not, can't it be translated as:
a: record end;
?
Yes, it can.
--
Jilani KHALDI
-
Micha Nelissen wrote:
Mattias Gärtner wrote:
How to translate this:
struct a;
Isn't this a forward declaration? So sometime later it needs to declare
'struct a { ... };' ?
If not, can't it be translated as:
a: record end;
?
Marc (not a Cist)
__
Le Jul 30, 2008 à 10:37 PM, Lourival Mendes a écrit :
I would do something like this:
C
struct product {
int weight;
float price;
} ;
product apple;
-
Pascal
Type
product = record
weight: Integer
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
Gene Buckle wrote:
How to translate this:
struct a;
a: pointer;
--
Jilani KHALDI
-
http://www.jkhaldi.eu
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> Datum: Wed, 30 Jul 2008 10:10:09 -0700 (PDT)
> Von: Gene Buckle <[EMAIL PROTECTED]>
> An: FPC-Pascal users discussions
> Betreff: Re: [fpc-pascal] Translate C to Pascal
> > How to translate this:
> >
> > struct a;
> >
> >
> er...
&
Mattias Gärtner wrote:
> How to translate this:
>
> struct a;
Isn't this a forward declaration? So sometime later it needs to declare
'struct a { ... };' ?
Micha
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/ma
How to translate this:
struct a;
er...
Closest would be:
type
record = foo
bar : integer;
end;
var
a : foo;
I _think_.
g.
--
Proud owner of F-15C 80-0007
http://www.f15sim.com - The only one of its kind.
___
fpc-pascal mail
How to translate this:
struct a;
Mattias
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
16 matches
Mail list logo