Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Ticket #564 (closed defect: fixed)

Opened 1 year ago

Last modified 11 months ago

Derivatives of AbstractSelector do not alias select()

Reported by: schveiguy Assigned to: jcomellas
Priority: normal Milestone: 0.99.1 RC4
Component: IO Version: trunk
Keywords: selector Cc:

Description

The following classes need to add an alias statement to make the select() method available to derivative classes:

tango.io.selector.SelectSelector
tango.io.selector.PollSelector
tango.io.selector.EPollSelector

All these classes need the following line in their definition:

alias AbstractSelector.select select;

The following code does not compile:

import tango.io.selector.PollSelector;

PollSelector ps = new PollSelector();
ps.select(); // cannot call base select()

Yeah, I know this case will basically hang if it did compile, but the compile issue is the problem, not the implementation of select().

Workaround is to cast the class to AbstractSelector? or ISelector before calling select().

Change History

08/08/07 13:26:18 changed by schveiguy

  • owner changed from sean to kris.
  • component changed from Core Functionality to IO.

08/09/07 05:39:11 changed by larsivi

  • owner changed from kris to jcomellas.

08/13/07 14:23:37 changed by larsivi

  • milestone set to 0.99.1 RC4.

09/06/07 23:39:06 changed by jcomellas

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in r2554.