[fpc-devel] Proposal: Multiple assignments

2010-08-05 Thread _-jane-_
Hello everybody, probably this is not really new stuff, but... May I propose multiple assignments, e.g. a,b:=0; or a,b += c+d; The right hand expression should be evaluated once and assigned (independently and in no particular order) to all the entries to the left of := . Jasper __

[fpc-devel] Proposal: Enhanced replacement for assignment operators

2010-08-05 Thread _-jane-_
Hello everybody, I would like to propose an enhanced replacement for the special assignment operators += -= *= and /= : More pascal-like would be constructs of the form "operator :=" such as a + := 1; a div := 3; a or := b; a xor := 3; a << := 1; Together with my prior proposal of mult

[fpc-devel] Proposal: Enhanced replacement for assignment operators

2010-08-05 Thread _-jane-_
Hello Florian! >> I would like to propose an enhanced replacement for the special assignment >> operators += -= *= and /= : >> More pascal-like would be constructs of the form "operator :=" such as >> a + := 1; >> a div := 3; >> a or := b; >> a xor := 3; >> a << := 1; >> Together with my prior p

[fpc-devel] Some proposals

2010-08-05 Thread _-jane-_
Hello! I recently put other proposals on http://wiki.freepascal.org/Talk:Modernised_Pascal. However I am not sure whether this is the right place to put this. The forum appears to be a better place. Unfortunately I am inexperienced in FPC's wiki system. What should I do about my postings? Shoul

[fpc-devel] Proposal: Enhanced replacement for assignment operators

2010-08-06 Thread _-jane-_
Hello all! It seems like I have hit a very hot spot with my proposal - they must be something worth... Let me recapitulate and once more comment on this. My proposal is to replace the operators "op=" by one operator "op" and a following ":=". This can be further enhanced to work together with m

[fpc-devel] Proposal: In-out-parameters

2010-08-09 Thread _-jane-_
Hello Michael! You wrote 2010-08-09 [Proposal: Enhanced replacement for assignment operators]: > BTW.: are there "inout" Parameters that are set on entry and written on > exit of a procedure, but not modified during the course of the procedure ? One could propose a new kinds of parameter transmi

[fpc-devel] Proposal: In-out-parameters

2010-08-09 Thread _-jane-_
Hello Vinzent! You wrote 2010-08-09: > You should at least have used the 1995 version. > Ada83 is pretty outdated, even here[tm], considering that > Ada2005 compilers are available for about five years now. :D > <[http://www.adahome.com/rm95/rm9x-06-02.html]> You're right. I was lazy. This was t

[fpc-devel] Proposal: Copy-in-out-parameters

2010-08-10 Thread _-jane-_
Hello Vinzent! You wrote 2010-08-10 In-out-parameters]:   >> Nevertheless it works whereas a simple reference parameter does not >> directly, and that's the point of the proposal. > Yes. In that way, properties would behave like normal variables again. I'd > like that. ;) Well, yes and no. For

[fpc-devel] Re: Class field reordering

2012-07-19 Thread _-jane-_
In my opinion class field reordering is a great idea I often wished.When I need a definitive layout, I always use PACKED.Unfortunately PACKED is not allowed on all suitable places; there should be packed set/array/record/object/class.Furthermore there should be pseudo-fields/pragmas for packed stru