Re: [fpc-pascal] OFFTOPIC: Money Model, for FPC

2010-12-03 Thread Zaher Dirkey
On Thu, Dec 2, 2010 at 11:20 PM, Osvaldo Filho wrote:

> Is Firebird really free?
>
> If you’re expecting some sensation, I’ll not make you happy. Shortly, yes,
> Firebird is free, completely. You can use it wherever you want and you don’t
> have to pay anything nor release sources of your application nor …
>
> On the other hand, the whole truth, considering all the edge cases and
> consequences, is different. To keep high quality of final product, keep
> adding new features, provide bug fixes – simply moving forward – the creator
> needs some resources. If these resources will not be available, it will be
> effectively dead. The resources I’m here talking about, in case of Firebird,
> are people doing full time or regular development. These people have
> families, houses, hobbies, … And for all of these items you need money (in
> our society [image: :)] ). They’re not doing it for fun (only), but also
> for living as well.
>
> So Firebird actually needs some money to keep moving. It doesn’t have
> licenses to buy or something like that. We’re simply relying on the fact,
> that people using it, similar to people working on it, do love it. And are
> educated enough to realize all this and provide, even small, support. Thus
> next time you’ll be deploying your application with Firebird, think about
> sending $10 or even $1. I bet it’s nothing for you (compared to price of the
> application or money you’re paying for toilet paper in your office). And ten
> thousand people (not much) donating $10 makes a huge difference. It’s not
> only about few donating $1.
>
> And by the way, Firebird is not “just” engine, but tools around too: .NET
> driver [image: ;)] , Java driver, documentation, QA, …, you name it.
>
>

http://blog.cincura.net/232199-is-firebird-really-free/

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

Re: [fpc-pascal] 2D Dynamic arrays and BlockRead

2010-12-03 Thread Jürgen Hestermann

andrew.benn...@ns.sympatico.ca schrieb:
After using BlockRead to fill a 2D dynamic array, I get an access violation on the 
very first reference. A 2D array with only one dimension dynamic works OK.

What am I missing?
  
Maybe you blundered into the same trap as so many others who do not know 
that dynamic arrays are *pointers* (to arrays). It is one of the sins 
done by Borland to abandon the once strict logic that in Pascal the 
syntax is always context independend. Now this is no longer the case 
(i.e. for dynamic arrays).


in your example

 STat  = Array[0..W-1] Of Single ; { Static array }
 DST = Array Of STat ; { One dimension dynamic, the other static }
 D2T = Array Of Array Of Single ; { Two dynamic dimensions }

STat always means the address starting with STat[0] (context independend).
Also DST always means the address where DST[0].
But D2T is a pointer which can be either the the address of the pointer 
(in all low level routines like fillchar, sizeof, BlockRead/-Write etc.) 
but also can be the address of the D2T[0] because you can refer to 
elements without the need to dereference it as in D2T^[0].

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