Took me a minute to figure out what's causing this output from GPC:
TCollection.epb: In method TCollection.Push': TCollection.epb:106: warning: capitalisation of high' doesn't match TCollection.eph:71: warning: previous capitalisation High' TCollection.epb:106: error: too many arguments to routine TCollection.High' TCollection.epb:88: error: routine declaration
Why is a class method named High() shadowing the built-in high()? What can be done (aside from renaming the method) so built-ins won't be shadowed?
-- Political Dissident Neil Santos Free Software Advocate Jabber: nsantos@jabber.org
Please avoid sending me attachments encoded in secret formatting. See http://www.fsf.org/philosophy/no-word-attachments.html
On 29 Oct 2004 at 0:55, Neil Santos wrote:
Took me a minute to figure out what's causing this output from GPC:
TCollection.epb: In method TCollection.Push': TCollection.epb:106: warning: capitalisation of high' doesn't match TCollection.eph:71: warning: previous capitalisation High' TCollection.epb:106: error: too many arguments to routine TCollection.High' TCollection.epb:88: error: routine declaration
Why is a class method named High() shadowing the built-in high()?
Anyone's guess. Which TCollection are you referring to here?
What can be done (aside from renaming the method) so built-ins won't be shadowed?
Perhaps showing the code in its context would enabling one to give an opinion.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/
Neil Santos a écrit:
Took me a minute to figure out what's causing this output from GPC:
TCollection.epb: In method TCollection.Push': TCollection.epb:106: warning: capitalisation of high' doesn't match TCollection.eph:71: warning: previous capitalisation High' TCollection.epb:106: error: too many arguments to routine TCollection.High' TCollection.epb:88: error: routine declaration
Why is a class method named High() shadowing the built-in high()? What can be done (aside from renaming the method) so built-ins won't be shadowed?
Pascal is case insensitive so high and High are the same identifier
Maurice