FLTK logo

STR #1659

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1659

Application:FLTK Library
Status:5 - New
Priority:1 - Request for Enhancement, e.g. asking for a feature
Scope:3 - Applies to all machines and operating systems
Subsystem:Unassigned
Summary:Missing "virtual" keyword in some .h files
Version:2.0-feature
Created By:gga
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 gga
13:20 Apr 23, 2007
Currently, a number of .h files describe several of their inherited functions as non-virtual ones.

> grep '^\s*int.*handle' fltk/*
> grep '^\s*void.*layout()' fltk/*
> grep '^\s*void.*draw()' fltk/*
> grep '^\s*void.*draw_overlay' fltk/*

C++ compilers will be smart enough to fix the error.

However, other parsers, such as SWIG for scripting language generation, are not so smart and will produce incorrect (and subtly wrong) output because of this.
 
 
#2 anton146
07:43 Mar 31, 2008
if inheriting already virtual function, another 'virtual' keyword isn't mandatory. Compilers aren't just smart, that is in the standard.

if swig doesn't handle it well, it's bug of swig, not fltk
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.