Comments (8)
The first part is on module scope, the second part inside a constructor. When I use auto
inside the constructor it works too, but that's not what I want.
from rx.
I cross-checked the v0.10.1 and v0.11.0 and there is a big change in filter.d which leads to the problem shown.
from rx.
It was intentional to remove the Voldemort types in the filter, but not the side effect of changing size.
It will be related to the compiler operation, so I will examine it in detail.
By wrapping FilterObservable! XXX in Observable! T and handling it, you may be able to achieve the desired operation at the expense of a little overhead.
from rx.
So, you are going to fix this?
I don't see how I can "wrap FilterObservable! XXX in Observable! T and handling it" can you give an example?
from rx.
So, you are going to fix this?
I still don't know if this can be fixed. It depends on the results of the survey we are going to do.
However, there is no future to remove the declaration of FilterObservable and FilterObserver.
can you give an example?
Well, There is an example using "observableObject".
rx/examples/mvvm-gtk-d/source/mvvm/model.d
Lines 9 to 26 in 0d8c52d
This is like the inputRangeObject function for the InputRange interface.
from rx.
This problem still exists, and I'm lost what to do. The example doesn't help me at all. Don't understand how it solves the problem.
I don't understand what "survey" you reference too nor this part "no future to remove the declaration of FilterObservable and FilterObserver."
from rx.
Ok, seems I somehow managed to get it to work like this:
alias typeof(windows_message_streams[WM_MOUSEMOVE].filter!(win => (win.wParam & MK_LBUTTON)).observableObject!OS_State()) WM_MOUSEMOVE_LBUTTON_TYPE;
WM_MOUSEMOVE_LBUTTON_TYPE WM_MOUSEMOVE_LBUTTON_STREAM;
WM_MOUSEMOVE_LBUTTON_STREAM = windows_message_streams[WM_MOUSEMOVE].filter!(win => (win.wParam & MK_LBUTTON)).observableObject!OS_State();
Not sure what kind of side-effect this has.
from rx.
This problem still exists, and I'm lost what to do. The example doesn't help me at all. Don't understand how it solves the problem.
I don't understand what "survey" you reference too nor this part "no future to remove the declaration of FilterObservable and FilterObserver."
I think by survey, he meant researching into the problem to see how he can solve it.
And the future
word should be a feature
...probably he plans to remove FilterObservable and FilterObserver in the future.
I think since he translates with Google translate, there might be loss of some context.
from rx.
Related Issues (17)
- subscribeOn is broken with TaskPoolScheduler and ThreadScheduler HOT 4
- Implement groupBy HOT 7
- Rename AnonymouseDisposable to AnonymousDisposable
- Observer not triggered HOT 7
- Commented examples / Basic Docs HOT 6
- Thread model questions HOT 7
- Speed of message distribution? HOT 5
- Return type of filter!(...) HOT 3
- Filter subscribers HOT 27
- CompositeObserver / several times the same observer HOT 1
- CompositeObserver.remove() returning Observer? HOT 3
- Why three different makeObserver(...) functions instead of one? HOT 1
- How to get reference to underlying object/function of an observer? HOT 1
- makeObserver in a loop / why does it use static struct? HOT 2
- RX fails with DMD 2.089 HOT 5
- Observable pipeline question
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rx.