pamola-net / Pamola

GNU General Public License v3.0
0 stars 0 forks source link

Implementing new components. #8

Closed JeanLColombo closed 3 years ago

JeanLColombo commented 3 years ago

Implementation of noveau components to Pamola's library.

JohniMichels commented 3 years ago

Can we add a test to see if it's behaving correctly?

JeanLColombo commented 3 years ago

Can we add a test to see if it's behaving correctly?

Yes, already done.

JeanLColombo commented 3 years ago

If G.Terminal is already connected to a node, the following code doesn't work.

G.Terminal.ConnectTo(J.Positive);

But this one works:

G.Terminal.Node.ConnectTo(J.Positive);

Was this an implementational feature, or a bug? Because Node will only exist after being created, so the second line may end in runtime errors.

JohniMichels commented 3 years ago

If G.Terminal is already connected to a node, the following code doesn't work.

G.Terminal.ConnectTo(J.Positive);

But this one works:

G.Terminal.Node.ConnectTo(J.Positive);

Was this an implementational feature, or a bug? Because Node will only exist after being created, so the second line may end in runtime errors.

It's a feature, to ensure explicit triple connection. You can use the ConnectAll method to ease the verbosity.

JeanLColombo commented 3 years ago

If G.Terminal is already connected to a node, the following code doesn't work. G.Terminal.ConnectTo(J.Positive); But this one works: G.Terminal.Node.ConnectTo(J.Positive); Was this an implementational feature, or a bug? Because Node will only exist after being created, so the second line may end in runtime errors.

It's a feature, to ensure explicit triple connection. You can use the ConnectAll method to ease the verbosity.

image

This works.