Re: [fpc-pascal]My object function is overriding real function

2004-02-19 Thread Jeremy Cowgar
Quoting Peter Vreman <[EMAIL PROTECTED]>: > Use explicit namespacing: System.Close(sin) Thank you all for the many responses. I now understand a bit more about the namespaces and have a working program :) Thanks, Jeremy ___ fpc-pascal maillist - [E

Re: [fpc-pascal]My object function is overriding real function

2004-02-19 Thread Matt Emson
> I have a object that connects to a speech server, festival. In my > object, I define a function called close. This must close the socket > connection, which is done by the function close. Therefore, I am having > a problem, because simply calling close with the sin and sout parameters > results i

Re: [fpc-pascal]My object function is overriding real function

2004-02-18 Thread Peter Vreman
> procedure TFestival.Close(); > begin > close(sin); > close(sout); > > Close := 0; > end; > > I realize that I can simply rename my close procedure but I imagine that > I will run into similar situations as I continue to use Free Pascal. Use explicit namespacing: System.Close(sin)

Re: [fpc-pascal]My object function is overriding real function

2004-02-18 Thread Jon D. Sawyer
If the function you wish to call is apart of another unit you can call i.g.: UnitName.Close(sin); UnitName.Close(sout); ** That may work from within the same unit but I'm not certain. ** Free pascal is great about name spaces and allowing you to specify which function you wish to call. On

[fpc-pascal]My object function is overriding real function

2004-02-18 Thread Jeremy Cowgar
Greetings. I have a object that connects to a speech server, festival. In my object, I define a function called close. This must close the socket connection, which is done by the function close. Therefore, I am having a problem, because simply calling close with the sin and sout parameters results