Jump to content

Loosing my basic understanding of equality!?!


Recommended Posts

Hi all,

I am having another hard time understanding the reason behind things. Coming from 42 as major answer my brain won´t come to an easy answer why this works:

post-1037-1213351840.png?width=400

Anyone around who would enlighten me, why this works and why it won´t work for other things inside the cluster like e.g. I32?

VI is in 8.5.1

Download File:post-1037-1213351859.vi

Greetings

Götz

Link to comment

I don't think there is any need to call Douglas Adams for this.

I'm not sure if there is any reason why this works with references (it seems to work with any kind of reference), but I would expect it not to work. In any case, I'm guessing that it just type casts the reference and then compares it. That would explain why an empty reference is equal to an empty string.

QUOTE (Yen @ Jun 13 2008, 03:13 PM)

I'm guessing that it just type casts the reference and then compares it.

Actually, attempting to compare to an existing reference crashes LabVIEW, so I'm guessing this is a bug.

Link to comment

Crashing LabVIEW by feeding the equal primitive with a valid Refnum, was the first thing a coworker did, after I showed him this (yeah... on my computer... of course).

Another interesting fact is the absence of a coercion dot. I guess that would point towards a deeply hidden form of typecast.

Link to comment

QUOTE (normandinf @ Jun 13 2008, 06:51 PM)

I could not crash LabVIEW 8.5 with the active reference equality...

It does happen with the current beta - all you need to do is get a reference to the current VI (e.g. by using a VI class property node).

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.