On Sunday 15 October 2006 00:42, peter green wrote:
> > In the case of wrapper integers in records, are 4-byte records handled as
> > efficiently by the compiler as 4-byte integers? I suspect it's
> > some radically
> > different code that handles it.
>
> test it?
That would require me to actually
> In the case of wrapper integers in records, are 4-byte records handled as
> efficiently by the compiler as 4-byte integers? I suspect it's
> some radically
> different code that handles it.
test it?
___
fpc-devel maillist - fpc-devel@lists.freepasc
At 23:00 14-10-2006, you wrote:
On Saturday 14 October 2006 17:38, Peter Vreman wrote:
> > On Saturday 14 October 2006 15:55, Marc Weustink wrote:
> >> Hi,
> >>
> >> if I define 2 types like:
> >>
> >> type
> >> MyA = type string;
> >> MyB = type string;
> >>
> >> are MyA and MyB considered a
On Saturday 14 October 2006 17:38, Peter Vreman wrote:
> > On Saturday 14 October 2006 15:55, Marc Weustink wrote:
> >> Hi,
> >>
> >> if I define 2 types like:
> >>
> >> type
> >> MyA = type string;
> >> MyB = type string;
> >>
> >> are MyA and MyB considered as the same type ?
> >
> > No, you
Florian Klaempfl wrote:
> Marc Weustink schrieb:
>> Next question: Should operator overloading be possible on such types ?
>
> Yes.
Then I think I found a bug, see 7610
Marc
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freep
Marc Weustink schrieb:
Next question: Should operator overloading be possible on such types ?
Yes.
___
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel
ers' list
> Subject: Re: [fpc-devel] type question
>
>
> Peter Vreman wrote:
> >> On Saturday 14 October 2006 15:55, Marc Weustink wrote:
> >>> Hi,
> >>>
> >>> if I define 2 types like:
> >>>
> >>> type
> >>&g
Peter Vreman wrote:
>> On Saturday 14 October 2006 15:55, Marc Weustink wrote:
>>> Hi,
>>>
>>> if I define 2 types like:
>>>
>>> type
>>> MyA = type string;
>>> MyB = type string;
>>>
>>> are MyA and MyB considered as the same type ?
>> No, you are explicitly marking them as a new type. This is
> On Saturday 14 October 2006 15:55, Marc Weustink wrote:
>> Hi,
>>
>> if I define 2 types like:
>>
>> type
>> MyA = type string;
>> MyB = type string;
>>
>> are MyA and MyB considered as the same type ?
>
> No, you are explicitly marking them as a new type. This is a very cool
> feature
> of P
Marc Weustink wrote:
program TypeTest;
{$mode objfpc}{$h+}
type
TMyA = type String;
TMyB = type String;
var
A: TMyA;
B: TMyB;
S: String;
begin
S := 'Some value';
A := S;
B := S;
S := A;
S := B;
A := B;
B := A;
end.
Well, assign works, but if you use them as var Pa
Christian Iversen wrote:
> On Saturday 14 October 2006 15:55, Marc Weustink wrote:
>> Hi,
>>
>> if I define 2 types like:
>>
>> type
>> MyA = type string;
>> MyB = type string;
>>
>> are MyA and MyB considered as the same type ?
>
> No, you are explicitly marking them as a new type. This is a
On Saturday 14 October 2006 15:55, Marc Weustink wrote:
> Hi,
>
> if I define 2 types like:
>
> type
> MyA = type string;
> MyB = type string;
>
> are MyA and MyB considered as the same type ?
No, you are explicitly marking them as a new type. This is a very cool feature
of Pascal you wont fi
Hi,
if I define 2 types like:
type
MyA = type string;
MyB = type string;
are MyA and MyB considered as the same type ?
Should it be allowed to assign a variable of type MyA to a variable of
type MyB ?
IIRC, the use of = type creates a new type.
Or am I wrong ?
Marc
13 matches
Mail list logo