[fpc-pascal] Re: fpc-pascal Digest, Vol 68, Issue 19

Justin Smyth delphian at smythconsulting.net
Tue Feb 16 13:34:44 CET 2010


Michael,

Your right let me clear this up , its really two classes i'm having issues 
with ,

TReader is only missing ReadStr - i have replaced the call with readstring 
as for the readvalue seems ok it now compiles OK. - readvalue exists in 
TReader
TWriter is only missing WriteStr & WriteValue ( which replaced WriteStr with 
writestring seems to compile ok ) and for writevalue , i just did the follow 
write(byte(vaCollection),1)\

is it me or should WriteValue exist in TWriter since a ReadValue Exists in 
TReader ?


The other part i've found missing is for TWrite is writepropname which 
basically writes a string containing the path and classname , but since you 
can get the path via PropertyPath i've just done a write string with it and 
the classname

Cheers , at least with this i've learnt how to compile the source code of 
the RTL ( basically i got the fpcsource2.2.4 and did it from the ground up 
and got it working with lazarus - i'm using 2.2.4 because i need to be able 
to debug under x86_64.)


Justin
----- Original Message ----- 
From: <fpc-pascal-request at lists.freepascal.org>
To: <fpc-pascal at lists.freepascal.org>
Sent: Tuesday, February 16, 2010 10:00 PM
Subject: fpc-pascal Digest, Vol 68, Issue 19


> Send fpc-pascal mailing list submissions to
> fpc-pascal at 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
> fpc-pascal-request at lists.freepascal.org
>
> You can reach the person managing the list at
> fpc-pascal-owner at lists.freepascal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fpc-pascal digest..."
>
>
> Today's Topics:
>
>   1. Re:  TReader Class (fpc_ml1 at babbler.org)
>   2.  command line option to specify record alignment (Bruce Bauman)
>   3. Re:  TReader Class (Michael Van Canneyt)
>   4. Re:  command line option to specify record alignment (Jonas Maebe)
>   5.  Printing of FPC program listing (James Gibbens)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Feb 2010 12:24:09 -0800
> From: fpc_ml1 at babbler.org
> Subject: Re: [fpc-pascal] TReader Class
> To: Justin Smyth <delphian at smythconsulting.net>, FPC-Pascal users
> discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <4B79AD69.9070200 at babbler.org>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Just interested in this...
> can you not use writestring, readstring?
> i know code is different but even on delphi they suggest you use
> writestring and readstring.
> readvalue is published.
> writevalue is not published... since you supposedly should be using
> existing routines to write values.
>
> if you have a user-defined type then perhaps your own extension using
> writebinary with a pre-code.
>
> --- dale
>
>
> Justin Smyth wrote:
>> Hopefully someone can point me to the right direction here, if this
>> isnt the  right place to ask feel free to point to where i can ask ...
>>
>> The FPC Class for TReader is missing some procedures as defined in the
>> delphi class of the same name
>>
>>
>> writestr , readstr , writevalue and readvalue.
>>
>> is there something else that i could use which would do the job ? i
>> dont want to create a inhertied class on TReader and add the missing
>> bits because certian functions need to be of TReader Not
>> T<MyCustom>Reader ie Filer.DefineProperty which has param as
>> TReaderProc & TWriterProc which both point to   TReaderProc =
>> procedure(Reader: TReader) of object &   TWriterProc =
>> procedure(Writer: TWriter) of object; which are defined in
>> classesh.inc which is part of the RTL )
>>
>> if i am to add this to the RTL Definition of TReader i'd need to
>> recompile the source to FPC ( which i have ) but not sure how i do this.
>>
>>
>> Justin Smyth
>>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Feb 2010 15:36:41 -0500
> From: "Bruce Bauman" <bruce.bauman at andesaservices.com>
> Subject: [fpc-pascal] command line option to specify record alignment
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Message-ID:
> <15DF771CF9BEAE418AA0C8D745F73D15084A68A8 at exchange.andesatpa.com>
> Content-Type: text/plain; charset="us-ascii"
>
> I've read through the documentation several times and cannot figure this
> out. The documentation is pretty unclear on this.
>
>
>
> I want a command line equivalent to {$PACKRECORDS 1}. Is there a way to
> do this via the command line?
>
>
>
> Thanks.
>
>
>
> -- Bruce
>
> CONFIDENTIALITY NOTICE: This e-mail is confidential and intended
> solely for the use of the individual or entity to which it is addressed. 
> If
> you are not the intended recipient, be advised that you have received
> this email in error and that any use, dissemination, forwarding, printing
> or copying of this e-mail is strictly prohibited. If you received this 
> e-mail
> in error, please delete it from your computer and contact the sender.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://lists.freepascal.org/lists/fpc-pascal/attachments/20100215/d6a812c6/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Mon, 15 Feb 2010 21:41:18 +0100 (CET)
> From: Michael Van Canneyt <michael at freepascal.org>
> Subject: Re: [fpc-pascal] TReader Class
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <alpine.DEB.2.00.1002152138360.2110 at localhost.localdomain>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>
>
> On Sat, 13 Feb 2010, Justin Smyth wrote:
>
>> Hopefully someone can point me to the right direction here, if this isnt 
>> the  right place to ask feel free to point to where i can ask ...
>>
>> The FPC Class for TReader is missing some procedures as defined in the 
>> delphi class of the same name
>>
>>
>> writestr , readstr , writevalue and readvalue.
>
> ? Why would you need writestr in a reader ?
>
> Secondly, if I look at TReader, I see:
>
>     function ReadString: string;
>     function ReadWideString: WideString;
>     function ReadUnicodeString: UnicodeString;
>     function ReadValue: TValueType;
>
> So what is the definition of your missing read calls ?
>
>
> Michael.
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 15 Feb 2010 21:47:54 +0100
> From: Jonas Maebe <jonas.maebe at elis.ugent.be>
> Subject: Re: [fpc-pascal] command line option to specify record
> alignment
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <0F22BD01-DEAC-4768-B2C1-DB7CCBD5F558 at elis.ugent.be>
> Content-Type: text/plain; charset=us-ascii
>
>
> On 15 Feb 2010, at 21:36, Bruce Bauman wrote:
>
>> I want a command line equivalent to {$PACKRECORDS 1}. Is there a way to
>> do this via the command line?
>
> No, there isn't.
>
>
> Jonas
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 15 Feb 2010 23:19:47 +0200
> From: "James Gibbens" <gibbens at intekom.co.za>
> Subject: [fpc-pascal] Printing of FPC program listing
> To: <fpc-pascal at lists.freepascal.org>
> Message-ID: <73D8D851ECEC4E7DBA0C5854A4A11B67 at user>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hallo All,
> Thank you for the answers and advice I have received. Three new issues if 
> y=
> ou good people don't mind.
> 1. I want to print my program listing by using the print option in the 
> File=
> drop-down menu (Free Pascal IDE window). I click on the Print option but 
> n=
> othing happens - the printer is on and it does print. How can I fix that?
> 2. The window of the Free Pascal IDE is only 21 lines high. Is it possible 
> =
> to show more lines on the computer screen? How can I do that?
> 3. Is it possible to get FPC to use a comma (,) in stead of a period (.) 
> as=
> the separator between integer and fraction? The way they do it in Europe?
> Thank you for the answers.
> James Gibbens.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> http://lists.freepascal.org/lists/fpc-pascal/attachments/20100215/57b3=
> 4f7e/attachment-0001.htm
>
> ------------------------------
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> End of fpc-pascal Digest, Vol 68, Issue 19
> ******************************************
>
> 





More information about the fpc-pascal mailing list