Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Gordon Findlay
Yet another daft idea from java. Is there any other place in any language (programming or natural) where underscored are used in this way? Any long list of digits will represent a string anyway. My library card had a field with 9 digits, but that sure ain't a number. On 22/11/2016 3:46 am, "Graem

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Flávio Etrusco
On Mon, Nov 21, 2016 at 10:09 PM, James Richters wrote: > I use notepad++ Vertical editing ALL THE TIME, you cannot do vertical editing > effectively with a proportional font. For those who aren't familiar with > it, you can hold down ALT and highlight many lines vertically making a very > ta

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread James Richters
I use notepad++ Vertical editing ALL THE TIME, you cannot do vertical editing effectively with a proportional font. For those who aren't familiar with it, you can hold down ALT and highlight many lines vertically making a very tall cursor, you can then start typing and what you type will be on

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Dmitry Boyarintsev
On Mon, Nov 21, 2016 at 9:46 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote: > I don't know about you, but I like this idea implemented in Java 7 and > later. > > http://jasdhir.blogspot.co.uk/2016/11/using-underscores-in-literals.html > > > I always find it hard to read long numeric

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread James Richters
>IOW I don't like editors that store in formats that are nearly useless in other editors. I total agree with this statement, proportional editors are only good if you are the only one who will ever look at the code, if anyone else EVER looks at it, it's just a giant mess, you can't put snippets o

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
On 2016-11-21 19:06, Sven Barth wrote: > but also due to the ability to easily compare > different names simply based on their visual length without having to > decide whether the difference is due to the name or the different sized > characters. And here is an example of the exact problem, but w

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
On 2016-11-21 19:06, Sven Barth wrote: > but also due to the ability to easily compare > different names simply based on their visual length without having to > decide whether the difference is due to the name or the different sized > characters. I don't think you fully understand what Elastic Tab

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
On 2016-11-21 19:25, Marco van de Voort wrote: > IOW I don't like editors that store in formats that are nearly useless in > other editors. Elastic Tabstops (ET) only does rendering of the text - based on two user defined preferences. The underling file doesn't change because of user preference ch

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said: [ Charset UTF-8 unsupported, converting... ] > On 2016-11-21 16:05, J?rgen Hestermann wrote: > > Why? > > I like monospaced fonts for code very much. > > See my reply to Stephen. More intelligent editors can let you use > monospaced and proportional

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Sven Barth
Am 21.11.2016 18:27 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2016-11-21 15:52, Stephen Chrzanowski wrote: > > but I've always preferred mono-spaced fonts in my IDE versus > > variable width, JUST on the primary basis of legibility of the code itself, > > ignoring the 'gr

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
On 2016-11-21 16:31, Vojtěch Čihák wrote: > I guess Graeme meant to make non-monospaced font look like monospaced > in Lazarus editor No I didn't mean that at all. That would be disastrous. Take a look at my reply to Stephen, and follow the links mentioned there and see the screenshots in the PDF

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
On 2016-11-21 16:05, Jürgen Hestermann wrote: > Why? > I like monospaced fonts for code very much. See my reply to Stephen. More intelligent editors can let you use monospaced and proportional fonts with ease - yet you don't loose code alignment, indentation etc. Elastic Tabstops do just that. It'

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
On 2016-11-21 15:52, Stephen Chrzanowski wrote: > but I've always preferred mono-spaced fonts in my IDE versus > variable width, JUST on the primary basis of legibility of the code itself, > ignoring the 'gravy' of lining up text within the code. Hence I mentioned "think Elastic Tabstops" which so

Re: [fpc-pascal] DOM and UTF-8 widestring conversion

2016-11-21 Thread Seth Grover
After playing around some more with my example, I was able to get it to work in 2.6.4 (without using the cwstring unit) by using the lazutf8 unit's UTF8ToUTF16 routine on the SetAttribute and UTF16ToUTF8 on the GetAttribute: TDOMElement(childNode).SetAttribute('value', UTF8ToUTF16(s)); s2

[fpc-pascal] DOM and UTF-8 widestring conversion

2016-11-21 Thread Seth Grover
I'm hoping somebody could point me to the specific change (mantis bug #, revision #, user changes wiki page link, whatever) between 2.6.4 and 3.0.0 that fixes this problem I was running into. Given this sample program: === program Project1; {$mode objfpc}{$H+}

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Stephen Chrzanowski
heh.. Not really, as GMail uses variable width fonts by default. ;) Imma gunna feex dat. On Mon, Nov 21, 2016 at 11:05 AM, Jürgen Hestermann < juergen.hesterm...@gmx.de> wrote: - > function FileCompareName (Datei1,Datei2 :

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Ralf Quint
On 11/21/2016 8:05 AM, Jürgen Hestermann wrote: Am 2016-11-21 um 15:46 schrieb Graeme Geldenhuys: The age old rule of programmer source code always being in a mono-spaced font is ridiculous for this day and age. Why? I like monospaced fonts for code very much. Code is not a novel or a newspap

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Vojtěch Čihák
I guess Graeme meant to make non-monospaced font look like monospaced in Lazarus editor which currently doesn't work (it looks very ugly).   V. __ Od: Jürgen Hestermann Komu: FPC-Pascal users discussions Datum: 21.11.2016 17:05 Předmě

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Jürgen Hestermann
Am 2016-11-21 um 15:46 schrieb Graeme Geldenhuys: The age old rule of programmer source code always being in a mono-spaced font is ridiculous for this day and age. Why? I like monospaced fonts for code very much. Code is not a novel or a newspaper where you read a lot of text from top down to

Re: [fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Stephen Chrzanowski
I like the concept, but, if I'm using a constant that goes beyond the millions, I'd add a comment to what the number is in US format, and tag on what exactly it means, or make the variable name itself mean something. Because reading const maxLongint = $7fff; or const maxLongint = 2147483647;

[fpc-pascal] Underscores in numerical literals - grouping

2016-11-21 Thread Graeme Geldenhuys
I don't know about you, but I like this idea implemented in Java 7 and later. http://jasdhir.blogspot.co.uk/2016/11/using-underscores-in-literals.html I always find it hard to read long numeric literals. Alternatively, without needing compiler changes, the IDE's and programmer editors should b

Re: [fpc-pascal] Is there a way to create a generic pointer to a generic record

2016-11-21 Thread Sven Barth
Am 21.11.2016 08:33 schrieb "Le Duc Hieu" : > > Is there any entry on Mantis for me to keep track of this bug status? No, because I just noticed that there is one when testing for your question ;) Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lis