[fpc-pascal] Synapse 37b4

2006-05-19 Thread Lukas Gebauer

FYI:

Has been published next Synapse snapshot 'synasnap 37b4' with lot of 
annonced changes for better FreePascal support.

You can use Synapse for all unix based targets now, but it is totally 
untested now! (we have reported some success on MacOsX only)



-- 
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
http://www.ararat.cz/synapse/ - Ararat Synapse - TCP/IP Lib.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] SSE3

2006-05-19 Thread Pianoman
Hi, I am interested whether is planed implementation of SSE3 floating 
instruction in to FPC. I saw optimizations in gpc for p2 p3 how can I set 
FPC to optimize let's say for P4?

Regards
Pianoman
- Original Message - 
From: <[EMAIL PROTECTED]>

To: 
Sent: Friday, May 19, 2006 12:00 PM
Subject: fpc-pascal Digest, Vol 21, Issue 19



Send fpc-pascal mailing list submissions to
fpc-pascal@lists.freepascal.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of fpc-pascal digest..."


Today's Topics:

  1.  writing to dynamic array via formal parameter; what is the
 right way ( ???)
  2.  [OT] fpc-gtk2 application on arm (Koenraad Lelong)


--

Message: 1
Date: Thu, 18 May 2006 16:20:10 +0400
From:  ??? <[EMAIL PROTECTED]>
Subject: [fpc-pascal] writing to dynamic array via formal parameter;
what is the right way
To: fpc-pascal@lists.freepascal.org
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=koi8-r

I use something like

var a: array of byte;
setlength(a,TheSize);
blockwrite(afile,a[0],TheSize);

Of course, if it is possible that TheSize=0, I have to write "if TheSize>0 
then blockwrite(...);"


Is this the intended way? (Ok, that's not a big overhead, but it seems 
strange to me.)


What is the intended way (if it's somewhat different)?

--

Message: 2
Date: Thu, 18 May 2006 20:38:25 +0200
From: Koenraad Lelong <[EMAIL PROTECTED]>
Subject: [fpc-pascal] [OT] fpc-gtk2 application on arm
To: FPC-Pascal users discussions 
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi,
I think it's off-topic, but since I don't know where to look I take a
chance asking here in the hope that some GTK-gurus can help me further.
I'm making a gtk2 application. Since it has to run on an arm-box with a
320x240 screen I made a main form of that size (actually 320x220 because
the title bar). This displays fine, full screen. On that form I have a
button to show a modal form, defined with the same size. When I display
this modal form on my i386-PC I get what I expected : a window of the
same size as the main window. When I display this on my arm-box it's
smaller and some buttons are clipped away.
I would like to understand why this happens. I could trim the form by
trail and error to fit it in the place I get, but this is not good enough.
I don't know how I could google for this, if it's possible. I looked
around on the gtk.org site without luck.
Is there anyone who can point me in the right direction ?
Regards,
Koenraad Lelong.

--

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

End of fpc-pascal Digest, Vol 21, Issue 19
**



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Typecasting by accident

2006-05-19 Thread Flávio Etrusco

I stand corrected. I've checked Delphi5 today and none of my
expectations where correct :-(
Of course I think that AnsiString being a native type would require
that (one) typecast just like any other (native type).

Of course I also think that any object should be cast to a mininum
common ancestor before being cast to any other class, but maybe it's
just me ;-)

-Flávio


On 5/15/06, Jonas Maebe <[EMAIL PROTECTED]> wrote:


On 15 mei 2006, at 18:09, Flávio Etrusco wrote:

>> It's a CAST dude! Exception_Message is being case as Not_Now. That
>> should
>> work fairly well in most dialects.t
>
> No. Typecasts, as any other aspect of a language, has to have rules.
> AFAIR this cast in Delphi would require another cast from AnsiString
> to Pointer.

It doesn't.

> And if typed pointers is enabled would require another
> cast from Pointer to TObject.

No. {$t+} only influences implicit pointer conversions.


Jonas


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal