1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Another help nit

Discussion in 'Support' started by vefatica, Feb 23, 2009.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,792
    Likes Received:
    29
    "b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    vefatica wrote:

    Since it's ignored (it equals a scale factor of 1) I don't know that
    putting it in the table serves much purpose, but I'll add it to the list.

    Rex Conn
    JP Software
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,792
    Likes Received:
    29
    On Tue, 24 Feb 2009 07:04:35 -0600, rconn <> wrote:

    |---Quote---
    |> "b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
    |---End Quote---
    |Since it's ignored (it equals a scale factor of 1) I don't know that
    |putting it in the table serves much purpose, but I'll add it to the list.

    It seems it **must** be present if you want @FILESIZE to give allocation in
    bytes ... @FILESIZE[...,b,a].
    --
    - Vince
     
  4. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,792
    Likes Received:
    29
    On Tue, 24 Feb 2009 09:07:01 -0600, vefatica <> wrote:

    ||---Quote---
    ||> "b" isn't mentioned in the table of disk/memory size format flags. I know it's mentioned further on but it belongs in the table.
    ||---End Quote---
    ||Since it's ignored (it equals a scale factor of 1) I don't know that
    ||putting it in the table serves much purpose, but I'll add it to the list.
    |
    |It seems it **must** be present if you want @FILESIZE to give allocation in
    |bytes ... @FILESIZE[...,b,a].

    Perhaps you'd change things to allow @FILESIZE[file_spec,,a].
    --
    - Vince
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    That would certainly be true if it weren't that the allocation option was removed a couple of years ago (in order to support /S). I need to update the docs.
     
  6. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,792
    Likes Received:
    29
    On Tue, 24 Feb 2009 19:13:54 -0600, rconn <> wrote:

    ||It seems it **must** be present if you want @FILESIZE to give allocation in
    ||bytes ... @FILESIZE[...,b,a].
    |
    |That would certainly be true if it weren't that the allocation option was removed a couple of years ago (in order to support /S). I need to update the docs.

    I don't see how they conflict, or even make life difficult for each other. My
    (now abandoned) @DU[] had it right from the beginning ... whenever a filesize
    was added to the byte total, a number of clusters was added to the cluster total
    ... a one-liner.

    Anyway, if one were interested (as one might be) in the disk space used, bytes
    allocated seems a must.
    --
    - Vince
     
  7. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    rconn wrote:
    | ---Quote (Originally by vefatica)---
    | On Tue, 24 Feb 2009 07:04:35 -0600, rconn <> wrote:
    |
    || ---Quote---
    ||| "b" isn't mentioned in the table of disk/memory size format flags.
    ||| I know it's mentioned further on but it belongs in the table.
    || ---End Quote---
    || Since it's ignored (it equals a scale factor of 1) I don't know that
    || putting it in the table serves much purpose, but I'll add it to the
    || list.
    |
    | It seems it **must** be present if you want @FILESIZE to give
    | allocation in
    | bytes ... @FILESIZE[...,b,a].
    | ---End Quote---
    |
    | That would certainly be true if it weren't that the allocation option
    | was removed a couple of years ago (in order to support /S). I need
    | to update the docs.

    The command

    echo %@filesize[/s *,b,a] %@filesize[/s *]

    indeed returned the same value twice, meaning that the parser accepted the
    optional ,a parameter, but the code ignored it. Not up to your usual
    standards...
    --
    Steve
     
  8. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    Steve Fábián wrote:

    No, both the parser and the code ignored the "a". (Most of the variable
    functions ignore any extraneous arguments.

    Rex Conn
    JP Software
     
  9. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,732
    Likes Received:
    81
    vefatica wrote:

    If it was that critical, somebody should have noticed during the past
    couple of years ...

    Rex Conn
    JP Software
     
  10. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    rconn wrote:
    | Most of the
    | variable functions ignore any extraneous arguments.

    Always learn something new...
    --
    Steve
     
  11. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,792
    Likes Received:
    29
    It's becoming increasingly common for bugs and other unfortunate things to go undetected for a long time. There's an awful lot of stuff in TCC. When someone raises a question about some feature, others start playing with that feature and that feature's features come to light. That'll continue.
     
  12. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,792
    Likes Received:
    29
    And it could very well be that folks continues using @FILESIZE[] with "a", thinking it was working since there was no indication that it wasn't!
     
  13. Steve Fabian

    Joined:
    May 20, 2008
    Messages:
    3,523
    Likes Received:
    4
    vefatica wrote:
    | And it could very well be that folks continues using @FILESIZE[] with
    | "a", thinking it was working since there was no indication that it
    | wasn't!

    That's my fear as well. I have a UDF using ",bc,a".
    --
    Steve
     

Share This Page