Skip to main content
2 votes
0 answers
56 views

SWIG multiple inheritance problem when returning a C++ class wrapped as an interface

I'm trying to wrap a C++ class using SWIG that involves multiple inheritance and another class with a method returning a shared pointer to a class declared as an interface in SWIG. Here is a ...
user31707527's user avatar
1 vote
1 answer
63 views

Problem with manim rendering of the arrows

I want to use manim to render a spiral, which is crucial for later animation. Even the output says that the first arrow's module is greater than the second arrow, the render result says that the first ...
YingKai Niu's user avatar
-1 votes
0 answers
28 views

How to handle JPA inheritance with Apache CXF FIQL and Criteria API (JPACriteriaQueryVisitor)? [closed]

I’m working on a Quarkus JPA repository where I use Apache CXF FIQL with JPACriteriaQueryVisitor to build dynamic queries. It works well for simple entities, but I’m facing issues when using JPA ...
Raoua KHATERCHI's user avatar
1 vote
3 answers
76 views

Inheritance of decorated classes

I'm using Python decorators to implement common functionality across multiple classes. The problem comes when I want the decorated classes to inherit from each other: super() doesn't seem to delegate ...
jezza's user avatar
  • 452
1 vote
0 answers
104 views

Hibernate 6 native query on parent class fails with “ORA-17006: Invalid column name”

After upgrading from Hibernate 5 to Hibernate 6, a native query that used to work now fails with an “ORA-17006: Invalid column name” error. Entity definitions Base class: @Entity @Table(name = "...
Maksson's user avatar
  • 13
3 votes
2 answers
158 views

derived class cannot call recursively inherited member functions C++

I'm making it using multi inheritance with a pair struct that contains an index and the type of the element in a recursive structure like this: template<int index, typename... ts> struct ok; ...
thefentmaster5's user avatar
0 votes
1 answer
52 views

How to define a generic type with `new(...args)` in TypeScript?

In TypeScript, it is possible to define a type of a constructable class using new(...args: any): // We have some class inheritance abstract class Something {} class ChildOfSomething extends Something {...
goose_lake's user avatar
  • 1,595
0 votes
2 answers
68 views

MyIntListImpl is not abstract and does not override abstract method getItem() in IMyDummyList [duplicate]

I don't understand why my class that extends an abstract class (which implements an interface) does not override the interface's single method. I get this error when I try to compile: MyIntListImpl ...
user27630372's user avatar
1 vote
1 answer
161 views

'Member may be null' even though it is set in base constructor

Suppose in C# I have one class that inherits from another like this: internal class TestImplementation : TestBase { [SetsRequiredMembers] public TestImplementation(List<string> param) : ...
Oliver Bleen's user avatar
-2 votes
0 answers
95 views

C#, PowerShell: return types [duplicate]

My requirement: Make the results from PowerShell commands in my C# code; I host PowerShell directly in C#. I want to use the output of any PowerShell command or script in my C# code. Some PowerShell ...
Andreas's user avatar
  • 87
4 votes
1 answer
188 views

Can there be a non-visual (without dfm) base form between TForm and any other form of the app?

In my Delphi 2009 VCL application, I have several base forms, like: TListBaseForm = class(TForm) TEditableListBaseFrom = class(TForm) TEditBaseForm = class(TForm) Each of these base forms is using ...
TomR's user avatar
  • 3,366
0 votes
1 answer
51 views

Understanding Metaclass Interaction with __init_subclass__ and Class Decorators

I'm trying to wrap my head around the precise order of operations and interactions when a Python class definition involves a metaclass, a init_subclass method, and a class decorator. class Meta(type): ...
user avatar
1 vote
3 answers
109 views

Better way to override methods on an instance of a JavaScript class

In our JavaScript web app, we use a custom-made component framework. All of our components are defined as classes using the class syntax. We can make child classes that inherit the parents, and they ...
John Brink's user avatar
0 votes
0 answers
34 views

mlSerializer: "Types 'Base.ClassTest' and 'Message1_0.ClassTest' both use the XML type name 'ClassTest'" when serializing inherited classes

I am working with XML serialization in C# where I have multiple versions of a message class that inherit from each other. Here’s a simplified version of my code: namespace XMLSerializeProblem.Base { ...
Yash2304's user avatar
0 votes
1 answer
80 views

Can muli-inheritance be simulated with generic class in C# [closed]

I have several DataGrid (actually an UserControl based on a DataGrid with filtering dialog, etc.) in a WPF project which show ObservableCollection<VisualXModel> entities where VisualXModel ...
Ludovic Wagner's user avatar

15 30 50 per page
1
2 3 4 5
2860