Thanks for the responses..surely the confusion I had, got cleared... :)
On 7/25/07, Jeremy North [EMAIL PROTECTED] wrote:
I'll answer for Chee Wee (not Chee - common mistake)
These articles were by Nick about changes since Delphi 7.
http://dn.codegear.com/article/34325 (VCL)
Dennis
Class methods have been around since Delphi 2. Where have you been
all these years?
Not explicitly, as I said, you cannot for example call them on the
class, you call them on a nil instance
which is hardly elegant php for example you would call a class method by
TClass::Method()
To
Class methods have been around for years, explicitly. As in
TMyClass.DoSomething, no nil instances required.
have just looked it up in my Using Delphi 3 (pub 1997) book that I keep
lying around for no apparent reason, so it's been at least a decade.
Class variables etc are newer
Regards
I'll say it again: no you won't. ;-)
I'll clarify my posting for you.
If you tried what the original poster said (I'm using D2006), and
recreated it (i.e. create two forms, make the second one not
autocreated, add a method to the second form with a simple ShowMessage
in it, and call that method
What do you mean Nevan?
You can call TShowOff.Static1() from way back in Delphi, if it is declared as
Chee Wee Chua pointed out.
class variables were introduced later.
Todd.
On Wed, 25 Jul 2007 20:18, Neven MacEwan wrote:
Dennis
Class methods have been around since Delphi 2. Where have
Sean
Thanks, I grovel corrected :-), Still little use with no data, ie Data +
Algorithms = Programs
N
Class methods have been around for years, explicitly. As in
TMyClass.DoSomething, no nil instances required.
have just looked it up in my Using Delphi 3 (pub 1997) book that I keep
lying
AnInstance := TAnObject.Create;
if that's not a class method I'm not sure what is ;)
D
On Wed, 25 Jul 2007 21:33:25 +1200, you wrote:
Sean
Thanks, I grovel corrected :-), Still little use with no data, ie Data +
Algorithms = Programs
N
Class methods have been around for years, explicitly.
Hi,
Is there any way to limit maximum memory, which an delphi application can be
allocated by Windows 2000 or xp? In some pc I am seeing a delphi application
while running gets allocated till 94 mb (in task manager) and no more, where
as I don't see any such limitation in my pc,
thanks
ani
Probably. ;-)
Which is why I clarified my original statement.
Cheers,
C.
P.S. I've been doing Delphi dev on and off since Delphi 1, so I do
understand the difference between the cases where I do and don't have
code in a method referring to instance properties as opposed to just a
simple
If they did (share the same class var), I would regard that as a bug.
Can't say I've tried though.
Myles.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Neven MacEwan
Sent: Thursday, 26 July 2007 09:16
To: NZ Borland Developers Group - Delphi List
On 7/26/07, Dennis Chuah [EMAIL PROTECTED] wrote:
... A constructor always instantiates an instance.
Unless the constructor raises an exception.
___
NZ Borland Developers Group - Delphi mailing list
Post: delphi@delphi.org.nz
Admin:
;) May be we are talking about different things?
In your case you were probably tricked by Delphi
(optimizer??)...
Yes, if you have just ShowMessage in your method
everything will be fine. But ... did you try to assign
value to some local variable? You will have AV cause
we don't have the object
Which leads me to another point, It would be nice (and maybe Delphi
does) have class variables reintroduced in subclasses ie
TSingleton = class
public
class var Instance;
end;
TSingletonA = class(TSingleton)
)
TSingletonB = class(TSingleton)
)
do a B 'share' Instance?
Watched one of Alistair Christie's online videos on form resizing. Great,
and Thanks - I learnt a new IDE trick: you can change properties on more
than one control at once by selecting several (and I thought that was only
to move them as a group - doh!)
Question - there are several ways to
Jeremy
Hence the If
On 7/26/07, Neven MacEwan [EMAIL PROTECTED] wrote:
Jeremy
Use both, though if I was posting authoritively, I'd say Since
Delphi 2...
Which is great since neither were in Delphi 2 as well.
Interfaces - Delphi 3
Dynamic arrays - Delphi 4
Which also reraises the issue
On your forms set AutoSize to False and Scaled to True. This is the
default for versions above D2005 I think. Previously AutoSize = True
was the default.
You may have to change the widths of some controls that don't autosize
(ie. checkbox) but very managable.
Form.scaleby
Or using align and
My point is Delphi (generic) does not have Class Methods/Vars or
are you saying that 'Delphi' only applies to D2005+
Thanks for making me laugh.
I hope you don't use interfaces or dynamic arrays then. Since they
also weren't in Delphi 1.
___
NZ
Neven MacEwan wrote:
Sean
Thanks, I grovel corrected :-), Still little use with no data, ie Data
+ Algorithms = Programs
I thought I might add my 10c (1/2/5 what has happened to our currency?!)
to this discussion. I have used class methods for a long time and used
unit data as the data -
Hey Todd,
This is good stuff, and I have taken the liberty of passing this onto
some of the product team (bcc'd), please keep it coming.
Also, one of the things we did was to make VCL for PHP truly open
source, I really strongly urge you and others like you who have great
ideas, to make a
Chee Wee
I overreacted but then i had a few people stomping on my head at the
time :-)
Interesting that others didn't know this
Regards Neven
Neven,
No sarcasm, and complacency was intended on my part.
I'm sorry I did not communicate well enough to convey that no smugness is meant.
Best
On 7/26/07, Neven MacEwan [EMAIL PROTECTED] wrote:
Jeremy
Use both, though if I was posting authoritively, I'd say Since Delphi 2...
Which is great since neither were in Delphi 2 as well.
Interfaces - Delphi 3
Dynamic arrays - Delphi 4
Which also reraises the issue of What is Delphi now we
I thought I might add my 10c (1/2/5 what has happened to our
currency?!)
It has become so overvalued and full of itself that it will not
acknowledge such derisory amounts.
cheers,
peter
===
Peter Hyde, Development Director
* http://TurboNote.com --
Well actually its not 100% surprising, thing about modern languages with
a rich history is that they are huge, and no-one can know everything
about it. A great example of this was / is Danny Thorpe, no-one could
doubt his expertise with Delphi and the compiler and majority of the VCL
in
Neven,
No sarcasm, and complacency was intended on my part.
I'm sorry I did not communicate well enough to convey that no smugness is meant.
Best Regards,
Chua, Chee Wee
CCNA, MCSE, SCJP, SCSA,
CodeGear(tm), from Borland
Where developers matter
www.codegear.com
-Original Message-
I agree, the Delphi for PHP name just doesn't seem right to me - they
apparently had big debates about it at CodeGear. I guess they are just
using the Delphi name to give it more credibility. Has anyone written
anything significant yet in it? The only thing I've done is the
mortgage
Okay, I admit, I had to look this one up
Derisory http://www.answers.com/main/ntquery?s=derisory+gwp=13
Alister Christie
Computers for People
Ph: 04 471 1849 Fax: 04 471 1266
http://www.salespartner.co.nz
PO Box 13085
Johnsonville
Wellington
[EMAIL PROTECTED] wrote:
I thought I might add
Jeremy
Use both, though if I was posting authoritively, I'd say Since Delphi 2...
Which also reraises the issue of What is Delphi now we have Delphi for
PHP?
Neven
My point is Delphi (generic) does not have Class Methods/Vars or
are you saying that 'Delphi' only applies to D2005+
Thanks
Myles
I'd be interested to know because in PHP 5+ that is exactly what happens
which means for a singleton
template you have to copy the class var into the subclass (or as I have
just considered) use an array
of class vars for any subclassing
could someone check?
Neven
If they did (share
My income is mostly from overseas sales and my current return is well down
on what it was a few months ago. But the market decides how valuable the
currency is so who are we to argue. It must be worth 80c US at the moment
due to the excellent state of the economy. But as exporters lose bids and
Dang, I thought I had finished with form resizing - forgot about ScaleBy
- are there any others that I have neglected?
You'll probably use all the techniques. For a long time I never used
anchors and I can't properly explain why - I just didn't know they were
there and for awhile and then I
It is called a constructor ... subtle differences, but *significant*. Eg.,
you cannot return a Nil from a constructor. A constructor always
instantiates an instance.
As for the use of class methods ... plenty. Eg., use it to replace unit
procedures and functions. Use it to implement
I have had a quite an extensive look through the VCL4PHP code and, although I
like the concept, I can't say I'm that impressed with the implementation.
There are a number of silly assumptions.
The first that springs to mind is the idea that a web page should only contain
one form. What a
32 matches
Mail list logo