Michael Jouravlev wrote:
Yes, this is exactly what I mean. This is evil. I take that you have
not used Object Pascal?

I've actually seen it, although I can't say I've personally used it.

  property MaxLength: Integer read FMaxLength write SetMaxLength default 0;

There's nothing to stop you from doing:

private Integer MaxLength; public void setMaxLength(Integer MaxLength) { this.Maxlength = MaxLength; } public Integer getMaxLength() { return this.MaxLength(); }

Well, nothing except knowing it's a bad style :) And no, I'm not trying to compare that single OPascal line and this, clearly the Pascal line is cleaner.

Is this so hard to implement in the compiler?

I certainly wouldn't think so. I'd be willing to bet there is a reason it hasn't been done before though because I agree it would make a lot of sense.

Why anyone would call that evil I don't understand.  Care to convince me
it is? :)


See above ;-)

I guess I took the word "evil" quite literally :) I agree what Java offers in this regard is probably sub-par, but I still think there is enough value in a class that does the bare minimum, just in terms of organization, to not want to attach the word "evil" to it... if you said "non-optimal", I would agree :)

Michael.

Frank



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to