Apr 30, 2005 19:34
I have a function that takes arguments:
function top (Page p, Entry[] e, Comment[] cs)
And I would like to not have the argument for Entry[] if the function is called from EntryPage, and not to have Comment[] if it's called from Recent/Friends. Is it possible? I tried this, but am getting an error message ("Expected identifier"):
function RecentPage::lay_spammertop() {
top($this, $this.entries, null []Comment);
}
function EntryPage::lay_spammertop() {
top($this, null []Entry, $this.comments);
}
Thanks!
s2 language,
question