nyx icon indicating copy to clipboard operation
nyx copied to clipboard

Illegal type conversion in nyx.size.pas

Open rchastain opened this issue 3 years ago • 3 comments

Hello!

I tried to compile nyx_test, under Linux, with Lazarus 2.0.10.

I get this error:

nyx.size.pas(159,18) Error: Illegal type conversion: "Pointer" to "<procedure variable type of procedure(const TPropertyUpdateType;const INyxSize;const TSizeProperty) of object;Register>"

Here is the guilty line:

  for I := 0 to High(LObservers) do
    try
      LMethod := TSizePropertyObserveMethod(LObservers[I]); 

Will try with a newer Lazarus.

Regards.

Roland

rchastain avatar Feb 18 '22 10:02 rchastain

Same error with Lazarus 2.3.0.

rchastain avatar Feb 18 '22 10:02 rchastain

Hi @rchastain 👋

Ahh yes I imagine there probably needs to be an "@" or some different syntax for the cast here.

For some backstory, my primary focus for Nyx was using the pas2js compiler (then I was going to flesh out the implementation for standard desktop development). So the nyx_test (even if it did compile) would be pretty barebones (just a button haha)

To see the framework in action I'd recommend getting pas2js setup (if it's not already) and looking over the browser test project

https://github.com/mr-highball/nyx/blob/master/test/nyx_browser_test.lpr

Also in the demos folder, there are some more completed examples for the browser

https://github.com/mr-highball/nyx/tree/master/demos/browser

Tbh, it's been a while since I've committed to the project so I can't give a great timeline for finishing the desktop UI components (eventually it'll happen 😅) but a lot of the browser functionality is there for basic apps

mr-highball avatar Feb 19 '22 00:02 mr-highball

Thanks for the informations.

rchastain avatar Feb 19 '22 02:02 rchastain